Skip to content

Commit

Permalink
chore: bump kcl package to xpkg.upbound.io/crossplane-contrib/functio…
Browse files Browse the repository at this point in the history
…n-kcl:v0.2.0

Signed-off-by: peefy <xpf6677@163.com>
  • Loading branch information
Peefy committed Mar 1, 2024
1 parent 908c0f6 commit 7a3569e
Show file tree
Hide file tree
Showing 14 changed files with 17 additions and 16 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

Crossplane KCL function allows developers to use [KCL](https://kcl-lang.io/) (a DSL) to write composite logic without the need for repeated packaging of crossplane functions, and we support package management and the [KRM KCL specification](https://github.com/kcl-lang/krm-kcl), which allows for OCI/Git source and the reuse of [KCL's module ecosystem](https://artifacthub.io/packages/search?org=kcl&sort=relevance&page=1).

Check out this [blog](https://blog.crossplane.io/function-kcl/) to learn more.

## Developing

```shell
Expand All @@ -24,7 +26,7 @@ $ docker build . --tag=kcllang/crossplane-kcl
$ crossplane xpkg build -f package --embed-runtime-image=kcllang/crossplane-kcl

# Push a function package to the registry
$ crossplane --verbose xpkg push -f package/*.xpkg docker.io/kcllang/crossplane-kcl
$ crossplane --verbose xpkg push -f package/*.xpkg xpkg.upbound.io/crossplane-contrib/function-kcl:v0.2.0
```

## Quick Start Examples and Debug Locally
Expand All @@ -40,7 +42,7 @@ kind: Function
metadata:
name: kcl-function
spec:
package: docker.io/kcllang/crossplane-kcl
package: xpkg.upbound.io/crossplane-contrib/function-kcl:v0.2.0
EOF
```

Expand Down Expand Up @@ -68,7 +70,6 @@ Here's what you can do in the KCL script:
+ Read the `ObservedComposedResources` from `option("params").ocds`.
+ Read the `DesiredCompositeResource` from `option("params").dxr`.
+ Read the `DesiredComposedResources` from `option("params").dcds`.
+ Read the environment variables. e.g. `option("PATH")` (**Not yet implemented**).

## Library

Expand Down
2 changes: 1 addition & 1 deletion examples/patch_desired/patching/functions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ metadata:
# This tells crossplane beta render to connect to the function locally.
render.crossplane.io/runtime: Development
spec:
package: docker.io/kcllang/crossplane-kcl
package: xpkg.upbound.io/crossplane-contrib/function-kcl:v0.2.0
2 changes: 1 addition & 1 deletion examples/patch_resources/patching/functions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ metadata:
# This tells crossplane beta render to connect to the function locally.
render.crossplane.io/runtime: Development
spec:
package: docker.io/kcllang/crossplane-kcl
package: xpkg.upbound.io/crossplane-contrib/function-kcl:v0.2.0
2 changes: 1 addition & 1 deletion examples/patch_resources/patching_multiple/functions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ metadata:
# This tells crossplane beta render to connect to the function locally.
render.crossplane.io/runtime: Development
spec:
package: docker.io/kcllang/crossplane-kcl
package: xpkg.upbound.io/crossplane-contrib/function-kcl:v0.2.0
2 changes: 1 addition & 1 deletion examples/resources/basic/functions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ metadata:
# This tells crossplane beta render to connect to the function locally.
render.crossplane.io/runtime: Development
spec:
package: docker.io/kcllang/crossplane-kcl
package: xpkg.upbound.io/crossplane-contrib/function-kcl:v0.2.0
2 changes: 1 addition & 1 deletion examples/resources/condition/functions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ metadata:
# This tells crossplane beta render to connect to the function locally.
render.crossplane.io/runtime: Development
spec:
package: docker.io/kcllang/crossplane-kcl
package: xpkg.upbound.io/crossplane-contrib/function-kcl:v0.2.0
2 changes: 1 addition & 1 deletion examples/resources/format/functions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ metadata:
# This tells crossplane beta render to connect to the function locally.
render.crossplane.io/runtime: Development
spec:
package: docker.io/kcllang/crossplane-kcl
package: xpkg.upbound.io/crossplane-contrib/function-kcl:v0.2.0
2 changes: 1 addition & 1 deletion examples/resources/loop/functions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ metadata:
# This tells crossplane beta render to connect to the function locally.
render.crossplane.io/runtime: Development
spec:
package: docker.io/kcllang/crossplane-kcl
package: xpkg.upbound.io/crossplane-contrib/function-kcl:v0.2.0
2 changes: 1 addition & 1 deletion examples/resources/network/functions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ metadata:
# This tells crossplane beta render to connect to the function locally.
render.crossplane.io/runtime: Development
spec:
package: docker.io/kcllang/crossplane-kcl
package: xpkg.upbound.io/crossplane-contrib/function-kcl:v0.2.0
2 changes: 1 addition & 1 deletion examples/resources/options/functions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ metadata:
# This tells crossplane beta render to connect to the function locally.
render.crossplane.io/runtime: Development
spec:
package: docker.io/kcllang/crossplane-kcl
package: xpkg.upbound.io/crossplane-contrib/function-kcl:v0.2.0
2 changes: 1 addition & 1 deletion examples/resources/options_oxr/functions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ metadata:
# This tells crossplane beta render to connect to the function locally.
render.crossplane.io/runtime: Development
spec:
package: docker.io/kcllang/crossplane-kcl
package: xpkg.upbound.io/crossplane-contrib/function-kcl:v0.2.0
2 changes: 1 addition & 1 deletion examples/resources/regex/functions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ metadata:
# This tells crossplane beta render to connect to the function locally.
render.crossplane.io/runtime: Development
spec:
package: docker.io/kcllang/crossplane-kcl
package: xpkg.upbound.io/crossplane-contrib/function-kcl:v0.2.0
2 changes: 1 addition & 1 deletion examples/xr/patching/functions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ metadata:
# This tells crossplane beta render to connect to the function locally.
render.crossplane.io/runtime: Development
spec:
package: docker.io/kcllang/crossplane-kcl
package: xpkg.upbound.io/crossplane-contrib/function-kcl:v0.2.0
2 changes: 1 addition & 1 deletion manifests/kcl-functions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ kind: Function
metadata:
name: kcl-function
spec:
package: docker.io/kcllang/crossplane-kcl
package: xpkg.upbound.io/crossplane-contrib/function-kcl:v0.2.0

0 comments on commit 7a3569e

Please sign in to comment.