From 9b132225c60ef178e24f0dd10bb498656116278b Mon Sep 17 00:00:00 2001 From: Ian Howell Date: Fri, 9 Nov 2018 16:11:20 -0600 Subject: [PATCH] This fixes host-specific overrides This properly assigns k8s secrets to volumes, rather than using configMaps Change-Id: Ifcabd3565fb2abee063f5da117d83ac3a5602536 --- helm-toolkit/templates/utils/_daemonset_overrides.tpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/helm-toolkit/templates/utils/_daemonset_overrides.tpl b/helm-toolkit/templates/utils/_daemonset_overrides.tpl index 448b60f81..8ba22416a 100644 --- a/helm-toolkit/templates/utils/_daemonset_overrides.tpl +++ b/helm-toolkit/templates/utils/_daemonset_overrides.tpl @@ -228,9 +228,9 @@ limitations under the License. {{- $_ := set $context.Values "__volume_list" list }} {{- range $current_volume := $context.Values.__daemonset_yaml.spec.template.spec.volumes }} {{- $_ := set $context.Values "__volume" $current_volume }} - {{- if hasKey $context.Values.__volume "configMap" }} - {{- if eq $context.Values.__volume.configMap.name $context.Values.__last_configmap_name }} - {{- $_ := set $context.Values.__volume.configMap "name" $current_dict.dns_1123_name }} + {{- if hasKey $context.Values.__volume "secret" }} + {{- if eq $context.Values.__volume.secret.secretName $context.Values.__last_configmap_name }} + {{- $_ := set $context.Values.__volume.secret "secretName" $current_dict.dns_1123_name }} {{- end }} {{- end }} {{- $updated_list := append $context.Values.__volume_list $context.Values.__volume }}