Skip to content

Commit

Permalink
Set aws file secrets as individual files
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-dyer-sp committed May 7, 2024
1 parent ec1497f commit e9ee23e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/atlantis/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: v1
appVersion: v0.27.3
description: A Helm chart for Atlantis https://www.runatlantis.io
name: atlantis
version: 5.0.1
version: 5.1.0
keywords:
- terraform
home: https://www.runatlantis.io
Expand Down
11 changes: 9 additions & 2 deletions charts/atlantis/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -520,10 +520,17 @@ spec:
mountPath: /home/atlantis/.netrc
subPath: netrc
{{- end }}
{{- if or .Values.aws.credentials .Values.aws.config .Values.awsSecretName }}
{{- range $filename, $_ := .Values.aws }}
{{- if has $filename (list "credentials" "config") }}
- name: aws-volume
readOnly: true
mountPath: {{ .Values.aws.directory | default "/home/atlantis/.aws" }}
mountPath: {{ $.Values.aws.directory | default "/home/atlantis/.aws" }}/{{ $filename }}
subPath: {{ $filename }}
{{- else if has $filename (list "awsSecretName") }}
- name: aws-volume
readOnly: true
mountPath: {{ $.Values.aws.directory | default "/home/atlantis/.aws" }}
{{- end }}
{{- end }}
{{- if .Values.tlsSecretName }}
- name: tls
Expand Down

0 comments on commit e9ee23e

Please sign in to comment.