File tree 6 files changed +17
-15
lines changed
examples/workload-charts-with-kcl
6 files changed +17
-15
lines changed Original file line number Diff line number Diff line change @@ -72,14 +72,15 @@ The content of `kcl-run.yaml` looks like this:
72
72
73
73
``` yaml
74
74
# kcl-config.yaml
75
- apiVersion : fn.kpt .dev/v1alpha1
75
+ apiVersion : krm.kcl .dev/v1alpha1
76
76
kind : KCLRun
77
77
metadata :
78
78
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]
83
84
84
85
repositories :
85
86
- name : workload
Original file line number Diff line number Diff line change 1
1
# kcl-config.yaml
2
- apiVersion : fn.kpt .dev/v1alpha1
2
+ apiVersion : krm.kcl .dev/v1alpha1
3
3
kind : KCLRun
4
4
metadata :
5
5
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]
10
11
11
12
repositories :
12
13
- name : workload
Original file line number Diff line number Diff line change 4
4
5
5
require (
6
6
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
8
8
github.com/spf13/cobra v1.6.1
9
9
go.uber.org/zap v1.24.0
10
10
google.golang.org/grpc v1.50.1
Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ github.com/GoogleContainerTools/kpt-functions-sdk/go/api v0.0.0-20220720212527-1
48
48
github.com/GoogleContainerTools/kpt-functions-sdk/go/api v0.0.0-20220720212527-133180134b93 /go.mod h1:gkK43tTaPXFNASpbIbQImzhmt1hdcdin++kvzTblykc =
49
49
github.com/GoogleContainerTools/kpt-functions-sdk/go/fn v0.0.0-20230302070146-e8e9cb3c3ae2 h1:GDUCDAY2ijsUjg70QPMvWKezRxGKKzU07ckVc5uTgZA =
50
50
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 =
53
53
github.com/MakeNowJust/heredoc v1.0.0 h1:cXCdzVdstXyiTqTvfqk9SDHpKNjxuom+DOlyEeQ4pzQ =
54
54
github.com/MakeNowJust/heredoc v1.0.0 /go.mod h1:mG5amYoWBHf8vpLOuehzbGGw0EHxpZZ6lCpQ4fNJ8LE =
55
55
github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI =
Original file line number Diff line number Diff line change 1
1
name : " kcl"
2
2
# Version is the version of Helm plus the number of official builds for this
3
3
# plugin
4
- version : " 0.1.2 "
4
+ version : " 0.1.3 "
5
5
usage : " Helm KCL Plugin"
6
6
description : " Helm KCL Plugin"
7
7
useTunnel : true
Original file line number Diff line number Diff line change @@ -5,4 +5,4 @@ if [ "$1" == "" ]; then
5
5
fi
6
6
git tag $1
7
7
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
You can’t perform that action at this time.
0 commit comments