rancher-partner-charts/charts/kubecost/cost-analyzer/templates/cost-analyzer-pkey-configma...

17 lines
555 B
YAML

{{- if .Values.kubecostProductConfigs }}
{{- if .Values.kubecostProductConfigs.productKey }}
{{- if .Values.kubecostProductConfigs.productKey.enabled }}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ default "product-configs" .Values.productConfigmapName }}
namespace: {{ .Release.Namespace }}
labels:
{{ include "cost-analyzer.commonLabels" . | nindent 4 }}
data:
{{- if .Values.kubecostProductConfigs.productKey.key }}
key: {{ .Values.kubecostProductConfigs.productKey.key | quote }}
{{- end -}}
{{- end -}}
{{- end -}}
{{- end -}}