There was an error while loading. Please reload this page.
1 parent 7ad8caf commit ffb31e6Copy full SHA for ffb31e6
template/deploy/helm/[[operator]]/templates/_maintenance.tpl
@@ -0,0 +1,23 @@
1
+{{/*
2
+Create a list of maintenance related env vars.
3
+*/}}
4
+{{- define "maintenance.envVars" -}}
5
+{{- with .Values.maintenance }}
6
+{{- if not .endOfSupportCheck.enabled }}
7
+- name: EOS_DISABLED
8
+ value: "true"
9
+{{- end }}
10
+{{- if and .endOfSupportCheck.enabled .endOfSupportCheck.mode }}
11
+- name: EOS_CHECK_MODE
12
+ value: {{ .endOfSupportCheck.mode }}
13
+{{ end }}
14
+{{- if and .endOfSupportCheck.enabled .endOfSupportCheck.interval }}
15
+- name: EOS_INTERVAL
16
+ value: {{ .endOfSupportCheck.interval }}
17
18
+{{- if not .customResourceDefinitions.maintain }}
19
+- name: DISABLE_CRD_MAINTENANCE
20
21
22
23
0 commit comments