File tree Expand file tree Collapse file tree
deploy/helm/opensearch-operator Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 {{- toYaml . | nindent 8 }}
2222 {{- end }}
2323 labels :
24+ {{- if .Values.maintenance.customResourceDefinitions.maintain }}
25+ webhook.stackable.tech/conversion : enabled
26+ {{- end }}
2427 {{- include "operator.selectorLabels" . | nindent 8 }}
2528 spec :
2629 {{- with .Values.image.pullSecrets }}
7881 - name : KUBERNETES_CLUSTER_DOMAIN
7982 value : {{ .Values.kubernetesClusterDomain | quote }}
8083 {{- end }}
84+
8185 {{- include "telemetry.envVars" . | nindent 12 }}
86+ {{- include "maintenance.envVars" . | nindent 12 }}
8287 volumes :
8388 - name : config-spec
8489 configMap :
Original file line number Diff line number Diff line change @@ -77,6 +77,12 @@ rules:
7777 - customresourcedefinitions
7878 verbs :
7979 - get
80+ # Required to maintain the CRD. The operator needs to do this, as it needs to enter e.g. it's
81+ # generated certificate in the conversion webhook.
82+ {{- if .Values.maintenance.customResourceDefinitions.maintain }}
83+ - create
84+ - patch
85+ {{- end }}
8086 - apiGroups :
8187 - listeners.stackable.tech
8288 resources :
Original file line number Diff line number Diff line change @@ -11,7 +11,10 @@ metadata:
1111 {{- include "operator.labels" . | nindent 4 }}
1212spec :
1313 selector :
14- {{- include "operator.selectorLabels" . | nindent 6 }}
14+ {{- if .Values.maintenance.customResourceDefinitions.maintain }}
15+ webhook.stackable.tech/conversion : enabled
16+ {{- end }}
17+ {{- include "operator.selectorLabels" . | nindent 4 }}
1518 ports :
1619 - name : conversion-webhook
1720 protocol : TCP
Original file line number Diff line number Diff line change @@ -45,6 +45,15 @@ affinity: {}
4545# See the https://docs.stackable.tech/home/stable/guides/kubernetes-cluster-domain guide for details.
4646# kubernetesClusterDomain: my-cluster.local
4747
48+ maintenance :
49+ endOfSupportCheck :
50+ enabled : true
51+ # mode: offline
52+ # interval: 24h
53+
54+ customResourceDefinitions :
55+ maintain : true
56+
4857# See all available options and detailed explanations about the concept here:
4958# https://docs.stackable.tech/home/stable/concepts/telemetry/
5059telemetry :
You can’t perform that action at this time.
0 commit comments