You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently there's quite a few languages in the encoding/... package enabling to write out yaml, json, etc... but there's no way to convert evaluated cue to a string to be able to write it to a file.
My use case is generating a SealedSecret from a k8s Secret defined in cue (the secret is not commited to git, only the sealed version). I can print or save yaml, but I can't write cue so that ArgoCD can pick it up and use it as part of the manifests to deploy. The alternative would be to write a yaml file, and then use exec.Run to run cue import... on that file and then delete the temporary file which would be quite verbose and messy.
It would probably have a parameter for the package to write to, and another for whatever cue structure to write there.
What does everyone think? Does anyone else have use for such functions?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Currently there's quite a few languages in the
encoding/...
package enabling to write out yaml, json, etc... but there's no way to convert evaluated cue to a string to be able to write it to a file.My use case is generating a SealedSecret from a k8s Secret defined in cue (the secret is not commited to git, only the sealed version). I can print or save yaml, but I can't write cue so that ArgoCD can pick it up and use it as part of the manifests to deploy. The alternative would be to write a yaml file, and then use
exec.Run
to runcue import...
on that file and then delete the temporary file which would be quite verbose and messy.It would probably have a parameter for the package to write to, and another for whatever cue structure to write there.
What does everyone think? Does anyone else have use for such functions?
Beta Was this translation helpful? Give feedback.
All reactions