Dynamic CUE generation using command line parameters #2478
-
|
Is there a way to dynamically interact with CUE? I want to pass feature flags on the command line to enable things in CUE. I'm working to replace Helm charts with CUE and am not finding a straightforward way to implement values which I use to conditionally enable/disable environment variables, Kubernetes resources, etc. I wrote a Go script to do what I want but wasn't sure if this was already possible in pure CUE Example UsagesEnable feature1Output: Insert arbitrary dataOutput: base.cuefill.go |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
@richardpeng - have you seen the support for injecting values into CUE, via The equivalent mechanism via |
Beta Was this translation helpful? Give feedback.
I actually ended up with a structure that doesn't use lists anyway: