Allow csi-snapshotter to be enabled without installing CRDs

This commit is contained in:
Navratan Lal Gupta 2023-07-18 22:25:04 +05:30
parent 346af08047
commit 3d3bc3da63
No known key found for this signature in database
3 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,4 @@
{{- if .Values.externalSnapshotter.enabled -}}
{{- if and .Values.externalSnapshotter.enabled .Values.externalSnapshotter.customResourceDefinitions.enabled -}}
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition

View File

@ -138,6 +138,10 @@ externalSnapshotter:
requests:
cpu: 10m
memory: 20Mi
# Create volume snapshot CRDs.
customResourceDefinitions:
enabled: true #if set true, VolumeSnapshot, VolumeSnapshotContent and VolumeSnapshotClass CRDs will be created. Set it false, If they already exist in cluster.
## Reference to one or more secrets to be used when pulling images
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
##