rancher-partner-charts/charts/kubecost/cost-analyzer/1.107.0/templates/azure-storage-config-secret...

27 lines
921 B
YAML

{{/*This method of configuration is deprecated*/}}
{{- if .Values.kubecostProductConfigs }}
{{- if .Values.kubecostProductConfigs.azureStorageCreateSecret }}
{{- if .Values.kubecostProductConfigs.azureStorageAccessKey }}
{{- if .Values.kubecostProductConfigs.azureStorageAccount }}
{{- if .Values.kubecostProductConfigs.azureStorageContainer }}
apiVersion: v1
kind: Secret
metadata:
name: azure-storage-config
namespace: {{ .Release.Namespace }}
labels:
{{ include "cost-analyzer.commonLabels" . | nindent 4 }}
type: Opaque
stringData:
azure-storage-config.json: |-
{
"azureStorageAccount": "{{ .Values.kubecostProductConfigs.azureStorageAccount }}",
"azureStorageAccessKey": "{{ .Values.kubecostProductConfigs.azureStorageAccessKey }}",
"azureStorageContainer": "{{ .Values.kubecostProductConfigs.azureStorageContainer }}"
}
{{- end -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- end -}}