File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -525,6 +525,11 @@ spec:
525525 mountPath : /home/atlantis/.netrc
526526 subPath : netrc
527527 {{- end }}
528+ {{- if .Values.awsSecretName }}
529+ - name : aws-volume
530+ readOnly : true
531+ mountPath : {{ .Values.aws.directory | default "/home/atlantis/.aws" }}
532+ {{- else }}
528533 {{- range $filename, $_ := .Values.aws }}
529534 {{- if has $filename (list "credentials" "config") }}
530535 - name : aws-volume
@@ -533,10 +538,6 @@ spec:
533538 subPath : {{ $filename }}
534539 {{- end }}
535540 {{- end }}
536- {{- if .Values.awsSecretName }}
537- - name : aws-volume
538- readOnly : true
539- mountPath : {{ .Values.aws.directory | default "/home/atlantis/.aws" }}
540541 {{- end }}
541542 {{- if .Values.tlsSecretName }}
542543 - name : tls
Original file line number Diff line number Diff line change @@ -139,6 +139,7 @@ aws: {}
139139# directory: "/home/atlantis/.aws"
140140
141141# -- To reference an already existing Secret object with AWS credentials
142+ # -- This has priority over the aws config and credential fields above.
142143awsSecretName : " "
143144
144145# -- To keep backwards compatibility only.
You can’t perform that action at this time.
0 commit comments