Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions template/deploy/helm/[[operator]]/templates/_maintenance.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{{/*
Create a list of maintenance related env vars.
*/}}
{{- define "maintenance.envVars" -}}
{{- with .Values.maintenance }}
{{- if not .endOfSupportCheck.enabled }}
- name: EOS_DISABLED
value: "true"
{{- end }}
{{- if and .endOfSupportCheck.enabled .endOfSupportCheck.mode }}
- name: EOS_CHECK_MODE
value: {{ .endOfSupportCheck.mode }}
{{ end }}
{{- if and .endOfSupportCheck.enabled .endOfSupportCheck.interval }}
- name: EOS_INTERVAL
value: {{ .endOfSupportCheck.interval }}
{{ end }}
{{- if not .customResourceDefinitions.maintain }}
- name: DISABLE_CRD_MAINTENANCE
value: "true"
{{- end }}
{{- end }}
{{- end }}