Skip to content

Commit

Permalink
feat: allow configurable data directory path
Browse files Browse the repository at this point in the history
  • Loading branch information
bchu-oanda committed Sep 15, 2023
1 parent 68f8b46 commit ae9a56c
Show file tree
Hide file tree
Showing 3 changed files with 6 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.25.0
description: A Helm chart for Atlantis https://www.runatlantis.io
name: atlantis
version: 4.15.1
version: 4.15.2
keywords:
- terraform
home: https://www.runatlantis.io
Expand Down
4 changes: 2 additions & 2 deletions charts/atlantis/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ spec:
value: /etc/tls/tls.key
{{- end }}
- name: ATLANTIS_DATA_DIR
value: /atlantis-data
value: {{ .Values.atlantisDataDirectory }}
- name: ATLANTIS_REPO_ALLOWLIST
value: {{ toYaml (coalesce .Values.orgWhitelist .Values.orgAllowlist) }}
- name: ATLANTIS_PORT
Expand Down Expand Up @@ -435,7 +435,7 @@ spec:
volumeMounts:
{{- if or .Values.volumeClaim.enabled .Values.dataStorage }}
- name: atlantis-data
mountPath: /atlantis-data
mountPath: {{ .Values.atlantisDataDirectory }}
{{- end }}
{{- range $name, $_ := .Values.serviceAccountSecrets }}
- name: {{ $name }}-volume
Expand Down
3 changes: 3 additions & 0 deletions charts/atlantis/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,9 @@ resources: {}
# memory: 1Gi
# cpu: 100m

## Path to the data directory for the volumeMount
atlantisDataDirectory: /atlantis-data

## Embedded data volume & volumeMount (default working)
volumeClaim:
enabled: true
Expand Down

0 comments on commit ae9a56c

Please sign in to comment.