rancher-partner-charts/charts/kubecost/cost-analyzer/2.4.2/templates/cost-analyzer-cloud-cost-re...

14 lines
440 B
YAML

{{- if .Values.global.cloudCostReports }}
{{- if .Values.global.cloudCostReports.enabled }}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{default "cloud-cost-report-configs" .Values.cloudCostReportConfigmapName }}
namespace: {{ .Release.Namespace }}
labels:
{{ include "cost-analyzer.commonLabels" . | nindent 4 }}
data:
cloud-cost-reports.json: '{{ toJson .Values.global.cloudCostReports.reports }}'
{{- end -}}
{{- end -}}