cloudfoundry-incubator / kubecf

Cloud Foundry on Kubernetes
Apache License 2.0
115 stars 62 forks source link

fix: use correct secret name when credentials are overridden #1671

Closed jandubois closed 3 years ago

jandubois commented 3 years ago

kubecf uses the quarks mechanism to override explicit bosh variables defined in https://github.com/cloudfoundry-incubator/quarks-operator/pull/915

This works automatically for bosh variables, but not for explicit references from manually created kube objects. This PR provides a helper template to generate the proper name.

Fixes #1666

jandubois commented 3 years ago

Just force-pushed this PR because I realized that the template function will work in mixins/eirini/config/eirini.yaml. It only requires the user values in $.Values and doesn't depend on config files being merged in.