Skip to content

Commit c4a670c

Browse files
authored
fix: additional pod/deployment labeling bool string encapsulation (#184)
1 parent 86820d6 commit c4a670c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

charts/k8s-service/templates/_deployment_spec.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ metadata:
8989
app.kubernetes.io/instance: {{ .Release.Name }}
9090
app.kubernetes.io/managed-by: {{ .Release.Service }}
9191
{{- range $key, $value := .Values.additionalDeploymentLabels }}
92-
{{ $key }}: {{ $value }}
92+
{{ $key }}: "{{ $value }}"
9393
{{- end}}
9494
{{- with .Values.deploymentAnnotations }}
9595
annotations:
@@ -131,7 +131,7 @@ spec:
131131
gruntwork.io/deployment-type: main
132132
{{- end }}
133133
{{- range $key, $value := .Values.additionalPodLabels }}
134-
{{ $key }}: {{ $value }}
134+
{{ $key }}: "{{ $value }}"
135135
{{- end }}
136136
137137
{{- with .Values.podAnnotations }}

charts/k8s-service/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,11 +334,11 @@ additionalDeploymentLabels: {}
334334
# NOTE: This variable is injected directly into the pod spec.
335335
podAnnotations: {}
336336

337-
# additionalDeploymentLabels will add the provided map to the labels for the Pods created by the deployment resource.
337+
# additionalPodLabels will add the provided map to the labels for the Pods created by the deployment resource.
338338
# this is in addition to the helm template related labels created by the chart
339339
# The keys and values are free form, but subject to the limitations of Kubernetes labelling.
340340
# The match labels for the deployment aren't affected by these additional labels
341-
# NOTE: This variable is injected directly into the deployment spec.
341+
# NOTE: This variable is injected directly into the pod spec.
342342
additionalPodLabels: {}
343343

344344
# minPodsAvailable specifies the minimum number of pods that should be available at any given point in time. This is

0 commit comments

Comments
 (0)