Replies: 1 comment 3 replies
-
Original reply by @cedricgc in cuelang/cue#508 (comment) If we are looking for the direct answer for those challenges, CUE's upcoming query syntax and code modification capabilities would be a good fit to automate configuration changes (may be only exposed through the Go API right now, unsure). It seems that you control the platform this is used in. Instead of making a tool to make these changes, would you able to make these changes for the user without their intervention? If you are open to changing your approach, I do have some ideas on how you can use CUE, especially if you are using Kubernetes |
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
-
Originally opened by @anjidevarasetty in cuelang/cue#508
Hello everyone,
Newbie Q:
We are working on large number of configuration json files and evaluating CUE to perform operations on that huge data.
Here my requirement is to create & update json files based on requirements.
We are thinking such a way that create/update json files with CUE.
my repo:
one of my json file
use-case 1:
Based on module_enabled= "1", needs to be updated above json like below
My idea is to provide higher level cue to the users like
use-case 2:
Need to create new json cost_optimization_sep_2020 from cost_optimization_aug_2020 and update field value of metadata.name.
For this higher level cue file is
How can i achieve these kind of operations with CUE ? please provide me some example for my two use-cases
Beta Was this translation helpful? Give feedback.
All reactions