chartutil: apply all labels to pods in default deployment template

Pods created from deployment template generated with `helm create`
currently only have the selector labels applied (i.e.
`app.kubernetes.io/name` and `app.kubernetes.io/instance`). This
changes the template so that all labels are applied to pods, just like
any other object the app consists of.

Signed-off-by: mig4 <42650719@auril.club>
pull/7800/head
mig4 6 years ago
parent a322199c65
commit 1fc0d42e5b
No known key found for this signature in database
GPG Key ID: 6CD3E1B61579CB43

@ -238,7 +238,7 @@ spec:
template: template:
metadata: metadata:
labels: labels:
{{- include "<CHARTNAME>.selectorLabels" . | nindent 8 }} {{- include "<CHARTNAME>.labels" . | nindent 8 }}
spec: spec:
{{- with .Values.imagePullSecrets }} {{- with .Values.imagePullSecrets }}
imagePullSecrets: imagePullSecrets:

Loading…
Cancel
Save