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

View File

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