diff --git a/charts/atlantis/Chart.yaml b/charts/atlantis/Chart.yaml index 50fb3d78..58c2eff9 100644 --- a/charts/atlantis/Chart.yaml +++ b/charts/atlantis/Chart.yaml @@ -3,7 +3,7 @@ apiVersion: v1 appVersion: v0.26.0 description: A Helm chart for Atlantis https://www.runatlantis.io name: atlantis -version: 4.16.0 +version: 4.17.0 keywords: - terraform home: https://www.runatlantis.io diff --git a/charts/atlantis/templates/statefulset.yaml b/charts/atlantis/templates/statefulset.yaml index 1accc53e..33d6c634 100644 --- a/charts/atlantis/templates/statefulset.yaml +++ b/charts/atlantis/templates/statefulset.yaml @@ -545,7 +545,10 @@ spec: - metadata: name: atlantis-data spec: - accessModes: ["ReadWriteOnce"] # Volume should not be shared by multiple nodes. + accessModes: + {{- range .Values.volumeClaim.accessModes }} + - {{ . | quote }} + {{- end }} {{- if .Values.volumeClaim.storageClassName }} storageClassName: {{ .Values.volumeClaim.storageClassName }} # Storage class of the volume {{- end }} diff --git a/charts/atlantis/values.yaml b/charts/atlantis/values.yaml index 6f8a5381..faf53b3b 100644 --- a/charts/atlantis/values.yaml +++ b/charts/atlantis/values.yaml @@ -331,6 +331,8 @@ volumeClaim: dataStorage: 5Gi ## Storage class name (if possible, use a resizable one) # storageClassName: value + accessModes: + - ReadWriteOnce ## To keep backwards compatibility ## DEPRECATED - Disk space for Atlantis to check out repositories