feat: add ontroller.enableSnapshotter chart config

fix
This commit is contained in:
andyzhangx 2024-12-15 03:02:20 +00:00
parent f1e8e04230
commit 4299806741
3 changed files with 3 additions and 0 deletions

View File

@ -110,6 +110,7 @@ spec:
capabilities:
drop:
- ALL
{{- if .Values.controller.enableSnapshotter }}
- name: csi-snapshotter
{{- if hasPrefix "/" .Values.image.csiSnapshotter.repository }}
image: "{{ .Values.image.baseRepo }}{{ .Values.image.csiSnapshotter.repository }}:{{ .Values.image.csiSnapshotter.tag }}"
@ -134,6 +135,7 @@ spec:
capabilities:
drop:
- ALL
{{- end }}
- name: liveness-probe
{{- if hasPrefix "/" .Values.image.livenessProbe.repository }}
image: "{{ .Values.image.baseRepo }}{{ .Values.image.livenessProbe.repository }}:{{ .Values.image.livenessProbe.tag }}"

View File

@ -56,6 +56,7 @@ controller:
strategyType: Recreate
runOnMaster: false
runOnControlPlane: false
enableSnapshotter: true
livenessProbe:
healthPort: 29652
logLevel: 5