Skip to content

Commit 88a2f5d

Browse files
committed
feat: allow configuring PVC StorageClass name
For some users it is important to be able to configure the StorageClass of the PersistentVolumeClaim, as the default is not always the preferred option.
1 parent 302849d commit 88a2f5d

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

snyk-monitor/templates/pvc.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ spec:
1010
resources:
1111
requests:
1212
storage: {{ .Values.temporaryStorageSize }}
13+
storageClassName: {{ .Values.pvc.storageClassName }}
1314
{{ end }}

snyk-monitor/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ temporaryStorageSize: 50Gi # Applies to PVC too
4040
pvc:
4141
enabled: false
4242
name: 'snyk-monitor-pvc'
43+
storageClassName: null
4344

4445
# Node.js in-container process memory enhancements
4546
envs:

snyk-operator/deploy/olm-catalog/snyk-operator/0.0.0/snyk-operator.v0.0.0.clusterserviceversion.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ metadata:
2323
"temporaryStorageSize": "50Gi",
2424
"pvc": {
2525
"enabled": false,
26-
"name": "snyk-monitor-pvc"
26+
"name": "snyk-monitor-pvc",
27+
"storageClassName": null
2728
},
2829
"initContainerImage": {
2930
"repository": "busybox",
@@ -126,6 +127,12 @@ spec:
126127
path: pvc.name
127128
x-descriptors:
128129
- 'urn:alm:descriptor:text'
130+
- description: >-
131+
The name of the StorageClass to use for the PVC, when enabled.
132+
displayName: PVC StorageClass name
133+
path: pvc.storageClassName
134+
x-descriptors:
135+
- 'urn:alm:descriptor:text'
129136
- description: >-
130137
The repo to use for initContainer, if overriding.
131138
displayName: InitContainer image repo

snyk-operator/deploy/olm-catalog/snyk-operator/0.0.0/snykmonitors.charts.helm.k8s.io.crd.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ spec:
5252
type: boolean
5353
name:
5454
type: string
55+
storageClassName:
56+
type: string
5557
type: object
5658
initContainerImage:
5759
properties:

0 commit comments

Comments
 (0)