News for hackers. Stuff that matters.
Re:Kubernetes Failure Stories by justicezyx on Sunday January 20, 2019 @09:25PM (#18957122)
You seem confuse Borg and borgcfg.

The evaluation rules are merely a borgcfg artifact.

Disclaimer: I maintain borgcfg.

Re:Kubernetes Failure Stories by ithkuil on Monday January 21, 2019 @02:20AM (#18958372)
I found https://jsonnet.org/ to fix several issues with the Borg configuration language.

https://github.com/ksonnet/kubecfg is an attempt to reboot the borgcfg experience with k8s + jsonnet

Re:Kubernetes Failure Stories by arianvanp on Monday January 21, 2019 @04:15AM (#18958928)
There is also Https://GitHub.com/dhall-lang/dhall-kubernetes which is built on top of dhall, another competitor of jsonnet
Re:Kubernetes Failure Stories by justicezyx on Monday January 21, 2019 @02:24AM (#18958396)
There is no such thing as borgcfg experience. It’s just a configuration dsl applied to producing borg specs.
Re:Kubernetes Failure Stories by ithkuil on Monday January 21, 2019 @07:21AM (#18959854)
You 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:
              ......
Re:Kubernetes Failure Stories by malkia on Monday January 21, 2019 @02:56AM (#18958557)
Sure yes - I meant borgcfg, not borg - stupid me...