Skip to content

Commit f28a240

Browse files
feat: add support for VolumeAttributeClass to pvc (#549)
* feat: add support for VolumeAttributeClass to pvc Signed-off-by: Connor Sweeney <csweeney@plaid.com> * fix docs Signed-off-by: Connor Sweeney <csweeney@plaid.com> --------- Signed-off-by: Connor Sweeney <csweeney@plaid.com>
1 parent 324b973 commit f28a240

5 files changed

Lines changed: 17 additions & 1 deletion

File tree

charts/atlantis/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: v1
33
appVersion: v0.43.0
44
description: A Helm chart for Atlantis https://www.runatlantis.io
55
name: atlantis
6-
version: 6.4.0
6+
version: 6.5.0
77
keywords:
88
- terraform
99
home: https://www.runatlantis.io

charts/atlantis/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ Optionally, set `service.internalTrafficPolicy: Local` or `Cluster` depending on
312312
| volumeClaim.dataStorage | string | `"5Gi"` | Disk space available to check out repositories. |
313313
| volumeClaim.enabled | bool | `true` | |
314314
| volumeClaim.storageClassName | string | `""` | Storage class name (if possible, use a resizable one). |
315+
| volumeClaim.volumeAttributesClassName | string | `""` | Volume attributes class name. |
315316
| webhook_ingress.annotations | object | `{}` | Check values.yaml for examples. |
316317
| webhook_ingress.enabled | bool | `false` | When true creates a secondary webhook. |
317318
| webhook_ingress.host | string | `""` | |

charts/atlantis/templates/pvc.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,7 @@ spec:
2020
{{- if .Values.volumeClaim.storageClassName }}
2121
storageClassName: {{ .Values.volumeClaim.storageClassName }}
2222
{{- end }}
23+
{{- if .Values.volumeClaim.volumeAttributesClassName }}
24+
volumeAttributesClassName: {{ .Values.volumeClaim.volumeAttributesClassName }}
25+
{{- end }}
2326
{{- end }}

charts/atlantis/tests/pvc_test.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,13 @@ tests:
4444
- equal:
4545
path: spec.resources.requests.storage
4646
value: 10Gi
47+
48+
- it: volumeAttributesClassName
49+
template: pvc.yaml
50+
set:
51+
volumeClaim:
52+
volumeAttributesClassName: "test-volume-attributes-class"
53+
asserts:
54+
- equal:
55+
path: spec.volumeAttributesClassName
56+
value: test-volume-attributes-class

charts/atlantis/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,8 @@ volumeClaim:
473473
dataStorage: 5Gi
474474
# -- Storage class name (if possible, use a resizable one).
475475
storageClassName: ""
476+
# -- Volume attributes class name.
477+
volumeAttributesClassName: ""
476478
accessModes: ["ReadWriteOnce"]
477479

478480
# -- DEPRECATED - Disk space available to check out repositories.

0 commit comments

Comments
 (0)