Replies: 1 comment
-
Something like the JavaScript merge function (edit: I mean |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So I have the below, which does work.
My aim here is to take a Kubernetes yaml, and remove the specific 'image' tag, so that I can override it later, as my understanding is cue combines all files, so if it is already defined I have to remove it.
Current idea for workload is, load yaml at _input, created a filtered one, combine that with the path of the value I want it to be, export resulting file as new yaml.
As such I don't know all the keys/fields, and want to copy unknowns as is.
The above does give me the filtered version, but it's pretty verbose. In other languages you are sometimes able to duplicate structs with a 'with' syntax, thus allowing targeted changes. Ideally does something like
exist?. Would be amazing if it allowed structs of depth too such that
would allow surgical changes.
Unsure if this is supported by the language, but it would be great for validated patches/changes of yaml/json
Beta Was this translation helpful? Give feedback.
All reactions