2022-01-10 19:55:02 +00:00
|
|
|
{{- if .Values.kubecostProductConfigs }}
|
|
|
|
{{- if .Values.kubecostProductConfigs.productKey }}
|
|
|
|
{{- if .Values.kubecostProductConfigs.productKey.enabled }}
|
2023-06-08 14:17:55 +00:00
|
|
|
# If the productKey.key is not specified, the configmap will not be created
|
|
|
|
{{- if .Values.kubecostProductConfigs.productKey.key }}
|
|
|
|
# If the secretname is specified, the configmap will not be created
|
|
|
|
{{- if not .Values.kubecostProductConfigs.productKey.secretname }}
|
2022-01-10 19:55:02 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: ConfigMap
|
|
|
|
metadata:
|
|
|
|
name: {{ default "product-configs" .Values.productConfigmapName }}
|
2023-02-07 20:34:08 +00:00
|
|
|
namespace: {{ .Release.Namespace }}
|
2022-01-10 19:55:02 +00:00
|
|
|
labels:
|
|
|
|
{{ include "cost-analyzer.commonLabels" . | nindent 4 }}
|
|
|
|
data:
|
|
|
|
{{- if .Values.kubecostProductConfigs.productKey.key }}
|
|
|
|
key: {{ .Values.kubecostProductConfigs.productKey.key | quote }}
|
|
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|
2023-06-08 14:17:55 +00:00
|
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|
2022-01-10 19:55:02 +00:00
|
|
|
{{- end -}}
|