vmware-archive / kubecfg

A tool for managing complex enterprise Kubernetes environments as code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cuelang Support

gravypod opened this issue · comments

CUE is another meta-configuration language that attacks the same problem set as Jsonnet. It provides a different set of abstractions that may make it more suitable for some deployments and team workflows. Would it be possible for kubecfg to implement support for CUE?

joining the crowd here for that xmas gift from @mkmik 🤡 !

I'm also very excited about cuelang. I wonder if kubecfg is needed in that world though. Doesn't cue already support integrating with kubectl? Kubectl now also supports diffs.

Doesn't cue already support integrating with kubectl? Kubectl now also supports diffs.

it does via its command -> tasks constructs (i.e. supports running any CLI really), but still wouldn't match kubecfg from interacting with the API itself iiuc, also kubecfg rather "liberal" multi-object structs handling (either single obj, lists, maps)

@mkmik I'm investigating kubecfg for these two, very impressive, features:

  1. Best-effort sorts objects before updating, so that dependencies are pushed to the server before objects that refer to them.
  2. Optional "garbage collection" of objects removed from config (see --gc-tag).

I'm not as familiar as I should be with kubectl and it's roadmap but from an outsider's perspective (someone who is relatively new to kubernetes tooling) it seems like kubecfg is much further along.