Previously, babysitter configuration was proto encoded, base64 encoded, and passed to the babysitter via environment variable. This PR instead puts the configuration in a ConfigMap:
The configuration includes the original weaver.toml file and a config.textpb file that includes a prototext encoded BabysitterConfig proto (which replaces ReplicaSetConfig). These files are mounted into the babysitter containers and passed to the babysitter as command line arguments:
This change takes us a step closer to weaver kube exec, if that's something we end up doing. It also makes the generated YAML more readable and self-explanatory.
Previously, babysitter configuration was proto encoded, base64 encoded, and passed to the babysitter via environment variable. This PR instead puts the configuration in a ConfigMap:
The configuration includes the original
weaver.toml
file and aconfig.textpb
file that includes a prototext encodedBabysitterConfig
proto (which replacesReplicaSetConfig
). These files are mounted into the babysitter containers and passed to the babysitter as command line arguments:This change takes us a step closer to
weaver kube exec
, if that's something we end up doing. It also makes the generated YAML more readable and self-explanatory.