Adding environment variables to sidecars
Currently we run a script after installing Spinnaker to edit the deployments and add FluentBit (log forwarder) as a sidecar to each pod that we can to capture logs from. Chris Gruel pointed out that we could use the sidecar configuration in Halyard to do this automatically.
One challenge with this is that we need to add the namespace, node etc to our logs.
This is currently done via an environment variable: - name: K8S_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace
It appears there's currently no way to add environment variables to sidecars using Halyard. Adding this functionality would allow us to completely deploy Spinnaker + sidecars without this additional script (and without the sidecars being lost on every Hal deploy apply)