diff --git a/cost-analyzer/templates/cost-analyzer-network-costs-template.yaml b/cost-analyzer/templates/cost-analyzer-network-costs-template.yaml index 626a8dcef..cc2bf515b 100644 --- a/cost-analyzer/templates/cost-analyzer-network-costs-template.yaml +++ b/cost-analyzer/templates/cost-analyzer-network-costs-template.yaml @@ -16,7 +16,9 @@ spec: metadata: labels: app: {{ template "cost-analyzer.networkCostsName" . }} - {{ toYaml .Values.networkCosts.additionalLabels | indent 8 }} + {{- if .Values.networkCosts.additionalLabels }} + {{ toYaml .Values.networkCosts.additionalLabels | nindent 8 }} + {{- end }} spec: hostNetwork: true serviceAccountName: {{ template "cost-analyzer.serviceAccountName" . }}