4 ms·
Looks interesting, but why is it a library and not a command line tool? For Kubernetes you don't really want to write a program (one that calls this library) f
by atombender 8y ago
Looks interesting, but why is it a library and not a command line tool?
For Kubernetes you don't really want to write a program (one that calls this library) for every single Kubernetes deploy you want to do.
Seeing as Protobuf schemes are parseable, why not just have a command line tool that parses the schema, then combines it with the Starlark declarations to generate Kubernetes manifests?
It could be an interesting competitor to Ksonnet if done right.
- jmillikin 8y agoInternally we use Skycfg as a library linked into other tooling, the same way you might link in a YAML parser. The ideal adoption model would see "skycfg support" as a checkmark feature of user-facing tools like kubectl or Helm. The specific case of a sky-to-yaml utility binary is one we want to write (and have started in the `_examples/repl/` directory). Unfortunately go-protobuf doesn't support dynamic protobuf schemas yet (https://github.com/golang/protobuf/issues/199 https://github.com/golang/protobuf/issues/199). Until it does, every message type must be linked directly into the binary.
- atombender 8y agoThanks for clearing that up. The story title and the Github repo together makes it unclear what this is intended for. I'd love to see a Helm-like tool built on Skycfg. I'm really surprised that the Go Protobuf implementation doesn't support dynamic schemas, which seems like such a core feature, but looks like work is underway.
- justicezyx 8y agoWhy is this downvoted?