rancher-partner-charts/charts/kubecost/cost-analyzer/2.2.3/templates/cost-analyzer-network-costs...

16 lines
402 B
YAML

{{- if .Values.networkCosts -}}
{{- if .Values.networkCosts.enabled -}}
{{- if .Values.networkCosts.config -}}
apiVersion: v1
kind: ConfigMap
metadata:
name: network-costs-config
namespace: {{ .Release.Namespace }}
labels:
{{ include "cost-analyzer.commonLabels" . | nindent 4 }}
data:
config.yaml: |
{{- toYaml .Values.networkCosts.config | nindent 4 }}
{{- end -}}
{{- end -}}
{{- end -}}