Merge pull request #481 from navilg/467-csi-snapshotter-without-crd

feat: allow csi-snapshotter to be enabled without installing CRDs
This commit is contained in:
Kubernetes Prow Robot 2023-07-20 07:38:10 -07:00 committed by GitHub
commit 7f8802f9c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 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
@ -6,6 +6,7 @@ metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.8.0
api-approved.kubernetes.io: "https://github.com/kubernetes-csi/external-snapshotter/pull/665"
"helm.sh/resource-policy": keep
creationTimestamp: null
name: volumesnapshots.snapshot.storage.k8s.io
spec:
@ -314,6 +315,7 @@ metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.8.0
api-approved.kubernetes.io: "https://github.com/kubernetes-csi/external-snapshotter/pull/665"
"helm.sh/resource-policy": keep
creationTimestamp: null
name: volumesnapshotclasses.snapshot.storage.k8s.io
spec:
@ -448,6 +450,7 @@ metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.8.0
api-approved.kubernetes.io: "https://github.com/kubernetes-csi/external-snapshotter/pull/665"
"helm.sh/resource-policy": keep
creationTimestamp: null
name: volumesnapshotcontents.snapshot.storage.k8s.io
spec:

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/
##