Skip to content

Commit

Permalink
set accessmodes
Browse files Browse the repository at this point in the history
Signed-off-by: Balsir <[email protected]>
  • Loading branch information
Balsir committed Oct 26, 2023
1 parent a852377 commit 8cd0b7e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 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.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
Expand Down
5 changes: 4 additions & 1 deletion charts/atlantis/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/atlantis/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8cd0b7e

Please sign in to comment.