rancher-partner-charts/charts/kubecost/cost-analyzer/templates/alibaba-service-key-secret....

20 lines
592 B
YAML

{{- if .Values.kubecostProductConfigs }}
{{- if .Values.kubecostProductConfigs.createServiceKeySecret }}
{{- if .Values.kubecostProductConfigs.alibabaServiceKeyName }}
apiVersion: v1
kind: Secret
metadata:
name: cloud-service-key
labels:
{{ include "cost-analyzer.commonLabels" . | nindent 4 }}
type: Opaque
stringData:
service-key.json: |-
{
"alibaba_access_key_id": "{{ .Values.kubecostProductConfigs.alibabaServiceKeyName }}",
"alibaba_secret_access_key": "{{ .Values.kubecostProductConfigs.alibabaServiceKeyPassword }}"
}
{{- end -}}
{{- end -}}
{{- end -}}