diff --git a/cost-analyzer/templates/cost-analyzer-checks-template.yaml b/cost-analyzer/templates/cost-analyzer-checks-template.yaml index 8f3747c01..490764124 100644 --- a/cost-analyzer/templates/cost-analyzer-checks-template.yaml +++ b/cost-analyzer/templates/cost-analyzer-checks-template.yaml @@ -6,7 +6,9 @@ metadata: name: cost-analyzer-checks labels: {{ include "cost-analyzer.commonLabels" . | nindent 4 }} + {{- if .Values.kubecostChecks.additionalLabels }} {{ toYaml .Values.kubecostChecks.additionalLabels | nindent 4 }} + {{- end }} spec: {{- if .Values.kubecostChecks.debug }} schedule: "*/1 * * * *" diff --git a/cost-analyzer/templates/cost-analyzer-deployment-template.yaml b/cost-analyzer/templates/cost-analyzer-deployment-template.yaml index 88c978545..9024ea1f7 100755 --- a/cost-analyzer/templates/cost-analyzer-deployment-template.yaml +++ b/cost-analyzer/templates/cost-analyzer-deployment-template.yaml @@ -26,7 +26,9 @@ spec: metadata: labels: {{ include "cost-analyzer.selectorLabels" . | nindent 8 }} + {{- if .Values.global.additionalLabels }} {{ toYaml .Values.global.additionalLabels | nindent 8 }} + {{- end }} {{- if .Values.kubecostDeployment }} {{- with .Values.kubecostDeployment.labels }} {{ toYaml . | indent 8 }}