feat: make snapshotController optional

This commit is contained in:
Stefan Reimer 2022-12-15 14:27:57 +00:00
parent 141ee23642
commit 2b0597125f
5 changed files with 9 additions and 6 deletions

View File

@ -1,4 +1,4 @@
---
{{- if .Values.snapshotController.enabled }}
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
@ -108,5 +108,4 @@ status:
plural: ""
conditions: []
storedVersions: []
{{- end }}

View File

@ -1,4 +1,4 @@
---
{{- if .Values.snapshotController.enabled }}
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
@ -289,3 +289,4 @@ status:
plural: ""
conditions: []
storedVersions: []
{{- end }}

View File

@ -1,3 +1,4 @@
{{- if .Values.snapshotController.enabled }}
kind: StatefulSet
apiVersion: apps/v1
metadata:
@ -46,3 +47,4 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}

View File

@ -1,3 +1,4 @@
{{- if .Values.snapshotController.enabled }}
# RBAC file for the snapshot controller.
#
# The snapshot controller implements the control loop for CSI snapshot functionality.
@ -83,4 +84,4 @@ roleRef:
kind: Role
name: snapshot-controller-leaderelection
apiGroup: rbac.authorization.k8s.io
{{- end }}

View File

@ -1,5 +1,5 @@
snapshotController:
enabled: true
enabled: false
replicas: 1
logLevel: 2