diff --git a/personal-gitlab-exporter/templates/deployment.yaml b/personal-gitlab-exporter/templates/deployment.yaml index 92fbc238b75050c3f0bc81d55d87c5c5dbe8628f..2ec46c5f872f93cd16b27f46ef1747ed336edf03 100644 --- a/personal-gitlab-exporter/templates/deployment.yaml +++ b/personal-gitlab-exporter/templates/deployment.yaml @@ -3,7 +3,9 @@ kind: Deployment metadata: name: {{ include "personal-gitlab-exporter.fullname" . }} labels: -{{ include "personal-gitlab-exporter.labels" . | indent 4 }} + {{- if .Values.labels }} + {{ include "personal-gitlab-exporter.labels" . | indent 2 }} + {{- end }} spec: replicas: {{ .Values.replicaCount }} selector: