rancher-partner-charts/charts/kubecost/cost-analyzer/1.70.000/templates/aws-service-key-secret.yaml

17 lines
500 B
YAML

{{- if .Values.kubecostProductConfigs }}
{{- if .Values.kubecostProductConfigs.createServiceKeySecret }}
{{- if .Values.kubecostProductConfigs.awsServiceKeyName }}
apiVersion: v1
kind: Secret
metadata:
name: cloud-service-key
type: Opaque
stringData:
service-key.json: |-
{
"aws_access_key_id": "{{ .Values.kubecostProductConfigs.awsServiceKeyName }}",
"aws_secret_access_key": "{{ .Values.kubecostProductConfigs.awsServiceKeyPassword }}"
}
{{- end -}}
{{- end -}}
{{- end -}}