File tree Expand file tree Collapse file tree 3 files changed +33
-5
lines changed Expand file tree Collapse file tree 3 files changed +33
-5
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ apiVersion: v1
33appVersion : v0.35.1
44description : A Helm chart for Atlantis https://www.runatlantis.io
55name : atlantis
6- version : 5.18.1
6+ version : 5.18.2
77keywords :
88 - terraform
99home : https://www.runatlantis.io
Original file line number Diff line number Diff line change @@ -130,6 +130,10 @@ spec:
130130 secret :
131131 secretName : {{ .Values.netrcSecretName }}
132132 {{- end }}
133+ {{- if or .Values.aws.credentials .Values.aws.config }}
134+ - name : aws-dir
135+ emptyDir : {}
136+ {{- end }}
133137 {{- if or .Values.aws.credentials .Values.aws.config .Values.awsSecretName }}
134138 - name : aws-volume
135139 secret :
@@ -584,10 +588,23 @@ spec:
584588 mountPath : /home/atlantis/.netrc
585589 subPath : netrc
586590 {{- end }}
587- {{- if or .Values.aws.credentials .Values.aws.config .Values.awsSecretName }}
591+ {{- if .Values.awsSecretName }}
588592 - name : aws-volume
589593 readOnly : true
590594 mountPath : {{ .Values.aws.directory | default "/home/atlantis/.aws" }}
595+ {{- else if or .Values.aws.credentials .Values.aws.config }}
596+ - name : aws-dir
597+ mountPath : {{ .Values.aws.directory | default "/home/atlantis/.aws" }}
598+ {{- end }}
599+ {{- if .Values.aws.credentials }}
600+ - name : aws-volume
601+ mountPath : {{ .Values.aws.directory | default "/home/atlantis/.aws" }}/credentials
602+ subPath : credentials
603+ {{- end }}
604+ {{- if .Values.aws.config }}
605+ - name : aws-volume
606+ mountPath : {{ .Values.aws.directory | default "/home/atlantis/.aws" }}/config
607+ subPath : config
591608 {{- end }}
592609 {{- if .Values.tlsSecretName }}
593610 - name : tls
Original file line number Diff line number Diff line change @@ -508,16 +508,27 @@ tests:
508508 asserts :
509509 - equal :
510510 path : spec.template.spec.volumes[1]
511+ value :
512+ name : aws-dir
513+ emptyDir : {}
514+ - equal :
515+ path : spec.template.spec.volumes[2]
511516 value :
512517 name : aws-volume
513518 secret :
514519 secretName : my-release-atlantis-aws
515520 - equal :
516- path : spec.template.spec.containers[0].volumeMounts[?(@.name == "aws-volume")]
521+ path : spec.template.spec.containers[0].volumeMounts[?(@.name == "aws-volume" && @.subPath == "credentials" )]
517522 value :
518- mountPath : /home/atlantis/.aws
523+ mountPath : /home/atlantis/.aws/credentials
519524 name : aws-volume
520- readOnly : true
525+ subPath : credentials
526+ - equal :
527+ path : spec.template.spec.containers[0].volumeMounts[?(@.name == "aws-volume" && @.subPath == "config")]
528+ value :
529+ mountPath : /home/atlantis/.aws/config
530+ name : aws-volume
531+ subPath : config
521532 - it : aws directory
522533 template : statefulset.yaml
523534 set :
You can’t perform that action at this time.
0 commit comments