Unverified Commit 72eabeae authored by Julien Mancuso's avatar Julien Mancuso Committed by GitHub
Browse files

fix: always emit pvc block in operator configmap when checkpoint storage type is pvc (#6752)


Signed-off-by: default avatarJulien Mancuso <jmancuso@nvidia.com>
parent ece08dc9
...@@ -128,19 +128,13 @@ data: ...@@ -128,19 +128,13 @@ data:
readyForCheckpointFilePath: {{ .Values.checkpoint.readyForCheckpointFilePath | quote }} readyForCheckpointFilePath: {{ .Values.checkpoint.readyForCheckpointFilePath | quote }}
{{- end }} {{- end }}
storage: storage:
{{- if ne (.Values.checkpoint.storage.type | toString) "pvc" }} {{- if and .Values.checkpoint.storage.type (ne (.Values.checkpoint.storage.type | toString) "pvc") }}
type: {{ .Values.checkpoint.storage.type | quote }} type: {{ .Values.checkpoint.storage.type | quote }}
{{- end }} {{- end }}
{{- if eq .Values.checkpoint.storage.type "pvc" }} {{- if or (eq (.Values.checkpoint.storage.type | toString) "pvc") (not .Values.checkpoint.storage.type) }}
{{- if or (ne (.Values.checkpoint.storage.pvc.pvcName | toString) "chrek-pvc") (ne (.Values.checkpoint.storage.pvc.basePath | toString) "/checkpoints") }}
pvc: pvc:
{{- if ne (.Values.checkpoint.storage.pvc.pvcName | toString) "chrek-pvc" }} pvcName: {{ (.Values.checkpoint.storage.pvc.pvcName | default "chrek-pvc") | quote }}
pvcName: {{ .Values.checkpoint.storage.pvc.pvcName | quote }} basePath: {{ (.Values.checkpoint.storage.pvc.basePath | default "/checkpoints") | quote }}
{{- end }}
{{- if ne (.Values.checkpoint.storage.pvc.basePath | toString) "/checkpoints" }}
basePath: {{ .Values.checkpoint.storage.pvc.basePath | quote }}
{{- end }}
{{- end }}
{{- end }} {{- end }}
{{- if eq .Values.checkpoint.storage.type "s3" }} {{- if eq .Values.checkpoint.storage.type "s3" }}
s3: s3:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment