4 ms·
You seem confuse Borg and borgcfg. The evaluation rules are merely a borgcfg artifact. Disclaimer: I maintain borgcfg.
by justicezyx 8y ago
You seem confuse Borg and borgcfg.
The evaluation rules are merely a borgcfg artifact.
Disclaimer: I maintain borgcfg.
- ithkuil 8y agoI found https://jsonnet.org/ https://jsonnet.org/ to fix several issues with the Borg configuration language. https://github.com/ksonnet/kubecfg https://github.com/ksonnet/kubecfg is an attempt to reboot the borgcfg experience with k8s + jsonnet
- justicezyx 8y agoThere is no such thing as borgcfg experience. It’s just a configuration dsl applied to producing borg specs.
- ithkuil 8y agoYou might take it for granted, and thus not experience it as an "experience", but if you use other tools that are popular in the k8s world (such as helm) you might feel a tinge of nostalgia. For example, {borg,kube}cfg allow you to import an existing config and override it so you can adapt it to another scenario (different things in different clusters, like prod vs staging, or a cluster has a new feature while another one doesn't etc). Furthermore, the overrides are described with the same "shape" as the things they override, and can override things that weren't necessarily marked as overridable. Compare this with the current state of affairs with helm, where the only way for users to be able to inject e.g. the resources requests and limits in a pod spec is for the original template author to have foreseen that need and explicitly added a hook in the template so that values from another file (the values.yaml) can be injected into it. spec: imagePullSecrets: - name: {{ .Values.image.pullSecret }} containers: - name: {{ template "mycontainer.name" . }} ...... resources: {{ toYaml .Values.resources | indent 12 }} volumes: ......
- arianvanp 8y agoThere is also Https://GitHub.com/dhall-lang/dhall-kubernetes which is built on top of dhall, another competitor of jsonnet
- malkia 8y agoSure yes - I meant borgcfg, not borg - stupid me...