KCL Overrides
#1984
Replies: 1 comment 3 replies
-
Have you tried the KCL override feature? Can it help you? https://www.kcl-lang.io/docs/user_docs/guides/automation |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We know that Helm uses values files to perform overrides until any depth.
In KCL, what is the recommend approach to perform such overrides?
Example
I have a schema:
Level 1
I have a base file,
eg:
base = Application { name = "my-app"}
.KCL output:
Level 2
I want an override it with a specific region,
eg:
dev = Application { name = "my-app" , region = "dev" }
.KCL output:
Level 3
I want an override it with a specific region within a specific availability domain,
eg:
dev_1a = Application { name = "my-app" , region = "dev", availabilityDomain = "1a" }
.KCL output:
In Helm, I'd do something like:
helm template my-chart --values base.yaml --values dev.yaml --values dev_1a.yaml
In KCL, what is the best way to approach this problem statement?
Beta Was this translation helpful? Give feedback.
All reactions