2021-12-08 18:17:39 +00:00
|
|
|
{{- if .Values.secret.create -}}
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Secret
|
|
|
|
metadata:
|
|
|
|
namespace: {{ .Release.Namespace }}
|
|
|
|
name: {{ .Values.secret.name }}
|
|
|
|
stringData:
|
2022-05-20 12:24:43 +00:00
|
|
|
{{- if .Values.secret.accessKey }}
|
2021-12-08 18:17:39 +00:00
|
|
|
accessKeyID: {{ .Values.secret.accessKey }}
|
2022-05-20 12:24:43 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- if .Values.secret.secretKey }}
|
2021-12-08 18:17:39 +00:00
|
|
|
secretAccessKey: {{ .Values.secret.secretKey }}
|
2022-05-20 12:24:43 +00:00
|
|
|
{{- end }}
|
2021-12-08 18:17:39 +00:00
|
|
|
endpoint: {{ .Values.secret.endpoint }}
|
2023-09-18 17:27:59 +00:00
|
|
|
{{- if .Values.secret.region }}
|
|
|
|
region: {{ .Values.secret.region }}
|
|
|
|
{{- end }}
|
2021-12-08 18:17:39 +00:00
|
|
|
{{- end -}}
|