17 lines
500 B
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 -}}
|