Skip to content

Commit a9adbd4

Browse files
committed
chore: bump helm-kcl version to v0.1.3
1 parent 9699fe9 commit a9adbd4

File tree

6 files changed

+17
-15
lines changed

6 files changed

+17
-15
lines changed

README.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,15 @@ The content of `kcl-run.yaml` looks like this:
7272

7373
```yaml
7474
# kcl-config.yaml
75-
apiVersion: fn.kpt.dev/v1alpha1
75+
apiVersion: krm.kcl.dev/v1alpha1
7676
kind: KCLRun
7777
metadata:
7878
name: set-annotation
79-
# EDIT THE SOURCE!
80-
# This should be your KCL code which preloads the `ResourceList` to `option("resource_list")
81-
source: |
82-
[resource | {if resource.kind == "Deployment": metadata.annotations: {"managed-by" = "helm-kcl-plugin"}} for resource in option("resource_list").items]
79+
spec:
80+
# EDIT THE SOURCE!
81+
# This should be your KCL code which preloads the `ResourceList` to `option("resource_list")
82+
source: |
83+
[resource | {if resource.kind == "Deployment": metadata.annotations: {"managed-by" = "helm-kcl-plugin"}} for resource in option("resource_list").items]
8384
8485
repositories:
8586
- name: workload

examples/workload-charts-with-kcl/kcl-run.yaml

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# kcl-config.yaml
2-
apiVersion: fn.kpt.dev/v1alpha1
2+
apiVersion: krm.kcl.dev/v1alpha1
33
kind: KCLRun
44
metadata:
55
name: set-annotation
6-
# EDIT THE SOURCE!
7-
# This should be your KCL code which preloads the `ResourceList` to `option("resource_list")
8-
source: |
9-
[resource | {if resource.kind == "Deployment": metadata.annotations: {"managed-by" = "helm-kcl-plugin"}} for resource in option("resource_list").items]
6+
spec:
7+
# EDIT THE SOURCE!
8+
# This should be your KCL code which preloads the `ResourceList` to `option("resource_list")
9+
source: |
10+
[resource | {if resource.kind == "Deployment": metadata.annotations: {"managed-by" = "helm-kcl-plugin"}} for resource in option("resource_list").items]
1011
1112
repositories:
1213
- name: workload

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.18
44

55
require (
66
github.com/GoogleContainerTools/kpt-functions-sdk/go/fn v0.0.0-20230302070146-e8e9cb3c3ae2
7-
github.com/KusionStack/krm-kcl v0.0.0-20230418113804-d36ac5ce2533
7+
github.com/KusionStack/krm-kcl v0.0.0-20230425151359-c282430ece78
88
github.com/spf13/cobra v1.6.1
99
go.uber.org/zap v1.24.0
1010
google.golang.org/grpc v1.50.1

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ github.com/GoogleContainerTools/kpt-functions-sdk/go/api v0.0.0-20220720212527-1
4848
github.com/GoogleContainerTools/kpt-functions-sdk/go/api v0.0.0-20220720212527-133180134b93/go.mod h1:gkK43tTaPXFNASpbIbQImzhmt1hdcdin++kvzTblykc=
4949
github.com/GoogleContainerTools/kpt-functions-sdk/go/fn v0.0.0-20230302070146-e8e9cb3c3ae2 h1:GDUCDAY2ijsUjg70QPMvWKezRxGKKzU07ckVc5uTgZA=
5050
github.com/GoogleContainerTools/kpt-functions-sdk/go/fn v0.0.0-20230302070146-e8e9cb3c3ae2/go.mod h1:Pnd3ImgaWS3OBVjztSiGMACMf+CDs20l5nT5Oljy/tA=
51-
github.com/KusionStack/krm-kcl v0.0.0-20230418113804-d36ac5ce2533 h1:HIl/35Xz2CfGiXcHeXq/F/+hnUNWwL98Auco/eVkBWg=
52-
github.com/KusionStack/krm-kcl v0.0.0-20230418113804-d36ac5ce2533/go.mod h1:V8b6lxmZTgmWPgC2uEtxB6sNqTyFVgN3VRBbmGGwYyI=
51+
github.com/KusionStack/krm-kcl v0.0.0-20230425151359-c282430ece78 h1:F2HBn5iQVExU8LReCDbR6MFf32asbjVm7z6kprTGVWE=
52+
github.com/KusionStack/krm-kcl v0.0.0-20230425151359-c282430ece78/go.mod h1:V8b6lxmZTgmWPgC2uEtxB6sNqTyFVgN3VRBbmGGwYyI=
5353
github.com/MakeNowJust/heredoc v1.0.0 h1:cXCdzVdstXyiTqTvfqk9SDHpKNjxuom+DOlyEeQ4pzQ=
5454
github.com/MakeNowJust/heredoc v1.0.0/go.mod h1:mG5amYoWBHf8vpLOuehzbGGw0EHxpZZ6lCpQ4fNJ8LE=
5555
github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI=

plugin.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: "kcl"
22
# Version is the version of Helm plus the number of official builds for this
33
# plugin
4-
version: "0.1.2"
4+
version: "0.1.3"
55
usage: "Helm KCL Plugin"
66
description: "Helm KCL Plugin"
77
useTunnel: true

scripts/release.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ if [ "$1" == "" ]; then
55
fi
66
git tag $1
77
git push origin $1
8-
gh release create $1 --draft --generate-notes --title "$1" release/*.tgz
8+
gh release create $1 --draft --generate-notes --title "$1 Release" release/*.tgz

0 commit comments

Comments
 (0)