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 apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition kind: CustomResourceDefinition
metadata: metadata:
@ -108,5 +108,4 @@ status:
plural: "" plural: ""
conditions: [] conditions: []
storedVersions: [] storedVersions: []
{{- end }}

View File

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

View File

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

View File

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

View File

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