Skip to content

Commit 0d27ec6

Browse files
ryan-dyer-spGMartinez-Sisti
authored andcommitted
Update charts/atlantis/templates/statefulset.yaml
Co-authored-by: Gabriel Martinez <[email protected]>
1 parent cad322e commit 0d27ec6

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

charts/atlantis/templates/statefulset.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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

charts/atlantis/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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.
142143
awsSecretName: ""
143144

144145
# -- To keep backwards compatibility only.

0 commit comments

Comments
 (0)