add conditional

Signed-off-by: arlan lloyd <arlanlloyd@gmail.com>
(cherry picked from commit febfa7eef7)
This commit is contained in:
arlan lloyd 2023-07-31 00:19:47 -07:00 committed by David Ko
parent 4087206819
commit 8f4c3eb8d3
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,4 @@
{{- if .Values.helmPreUpgradeCheckerJob.enabled }}
apiVersion: batch/v1
kind: Job
metadata:
@ -54,3 +55,4 @@ spec:
{{ toYaml .Values.longhornManager.nodeSelector | indent 8 }}
{{- end }}
{{- end }}
{{- end }}

View File

@ -102,6 +102,9 @@ persistence:
selector: ""
removeSnapshotsDuringFilesystemTrim: ignored # "enabled" or "disabled" otherwise
helmPreUpgradeCheckerJob:
enabled: true
csi:
kubeletRootDir: ~
attacherReplicaCount: ~