Allow templating in S3 config
Signed-off-by: PidgeyBE <pidgey.be@gmail.com> Signed-off-by: Peejai <pieterjan.soetaert@robovision.eu>
This commit is contained in:
parent
0923de4993
commit
cc6c3e0962
1 changed files with 7 additions and 7 deletions
|
@ -69,20 +69,20 @@ data:
|
||||||
s3:
|
s3:
|
||||||
{{- if .Values.useStaticCredentials }}
|
{{- if .Values.useStaticCredentials }}
|
||||||
accessKeySecret:
|
accessKeySecret:
|
||||||
key: {{ .Values.artifactRepository.s3.accessKeySecret.key }}
|
key: {{ tpl .Values.artifactRepository.s3.accessKeySecret.key $ }}
|
||||||
name: {{ .Values.artifactRepository.s3.accessKeySecret.name }}
|
name: {{ tpl .Values.artifactRepository.s3.accessKeySecret.name $ }}
|
||||||
secretKeySecret:
|
secretKeySecret:
|
||||||
key: {{ .Values.artifactRepository.s3.secretKeySecret.key }}
|
key: {{ tpl .Values.artifactRepository.s3.secretKeySecret.key $ }}
|
||||||
name: {{ .Values.artifactRepository.s3.secretKeySecret.name }}
|
name: {{ tpl .Values.artifactRepository.s3.secretKeySecret.name $ }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
bucket: {{ .Values.artifactRepository.s3.bucket }}
|
bucket: {{ tpl .Values.artifactRepository.s3.bucket $ }}
|
||||||
endpoint: {{ .Values.artifactRepository.s3.endpoint }}
|
endpoint: {{ tpl .Values.artifactRepository.s3.endpoint $ }}
|
||||||
insecure: {{ .Values.artifactRepository.s3.insecure }}
|
insecure: {{ .Values.artifactRepository.s3.insecure }}
|
||||||
{{- if .Values.artifactRepository.s3.keyFormat }}
|
{{- if .Values.artifactRepository.s3.keyFormat }}
|
||||||
keyFormat: {{ .Values.artifactRepository.s3.keyFormat | quote }}
|
keyFormat: {{ .Values.artifactRepository.s3.keyFormat | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.artifactRepository.s3.region }}
|
{{- if .Values.artifactRepository.s3.region }}
|
||||||
region: {{ .Values.artifactRepository.s3.region }}
|
region: {{ tpl .Values.artifactRepository.s3.region $ }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.artifactRepository.s3.roleARN }}
|
{{- if .Values.artifactRepository.s3.roleARN }}
|
||||||
roleARN: {{ .Values.artifactRepository.s3.roleARN }}
|
roleARN: {{ .Values.artifactRepository.s3.roleARN }}
|
||||||
|
|
Loading…
Reference in a new issue