From 1fc0d42e5b7c550a7903bf51006aa23511f8eb1c Mon Sep 17 00:00:00 2001 From: mig4 <42650719@auril.club> Date: Tue, 24 Mar 2020 15:12:54 +0000 Subject: [PATCH] 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> --- pkg/chartutil/create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/chartutil/create.go b/pkg/chartutil/create.go index 24eb1e277..4eb78dc96 100644 --- a/pkg/chartutil/create.go +++ b/pkg/chartutil/create.go @@ -238,7 +238,7 @@ spec: template: metadata: labels: - {{- include ".selectorLabels" . | nindent 8 }} + {{- include ".labels" . | nindent 8 }} spec: {{- with .Values.imagePullSecrets }} imagePullSecrets: