feat: make snapshotController optional
This commit is contained in:
parent
c4968320c3
commit
8d2fad3f2a
@ -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 }}
|
||||||
|
|
||||||
|
@ -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 }}
|
||||||
|
@ -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 }}
|
||||||
|
@ -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 }}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
snapshotController:
|
snapshotController:
|
||||||
enabled: true
|
enabled: false
|
||||||
replicas: 1
|
replicas: 1
|
||||||
logLevel: 2
|
logLevel: 2
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user