Skip to content

Commit

Permalink
Merge branch 'main' into Issue-380
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-dyer-sp committed May 8, 2024
2 parents e9ee23e + ef3ced1 commit cad322e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 9 additions & 3 deletions charts/atlantis/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ spec:
{{- if .Values.initConfig.enabled }}
checksum/init-config: {{ include (print $.Template.BasePath "/configmap-init-config.yaml") . | sha256sum }}
{{- end }}
{{- if .Values.aws }}
checksum/aws-secret: {{ include (print $.Template.BasePath "/secret-aws.yaml") . | sha256sum }}
{{- end }}
{{- if .Values.podTemplate.annotations }}
{{- toYaml .Values.podTemplate.annotations | nindent 8 }}
{{- end }}
Expand Down Expand Up @@ -86,10 +89,12 @@ spec:
{{- if .Values.gitconfig }}
- name: gitconfig-volume
secret:
defaultMode: 0660
secretName: {{ template "atlantis.fullname" . }}-gitconfig
{{- else if .Values.gitconfigSecretName }}
- name: gitconfig-volume
secret:
defaultMode: 0660
secretName: {{ .Values.gitconfigSecretName }}
{{- end }}
{{- if .Values.netrc }}
Expand Down Expand Up @@ -526,11 +531,12 @@ spec:
readOnly: true
mountPath: {{ $.Values.aws.directory | default "/home/atlantis/.aws" }}/{{ $filename }}
subPath: {{ $filename }}
{{- else if has $filename (list "awsSecretName") }}
{{- end }}
{{- end }}
{{- if .Values.awsSecretName }}
- name: aws-volume
readOnly: true
mountPath: {{ $.Values.aws.directory | default "/home/atlantis/.aws" }}
{{- end }}
mountPath: {{ .Values.aws.directory | default "/home/atlantis/.aws" }}
{{- end }}
{{- if .Values.tlsSecretName }}
- name: tls
Expand Down
2 changes: 2 additions & 0 deletions charts/atlantis/tests/statefulset_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ tests:
value:
name: gitconfig-volume
secret:
defaultMode: 432
secretName: my-release-atlantis-gitconfig
- equal:
path: spec.template.spec.containers[0].volumeMounts[?(@.name ==
Expand All @@ -351,6 +352,7 @@ tests:
value:
name: gitconfig-volume
secret:
defaultMode: 432
secretName: atlantis-gitconfig
- equal:
path: spec.template.spec.containers[0].volumeMounts[?(@.name ==
Expand Down

0 comments on commit cad322e

Please sign in to comment.