File tree Expand file tree Collapse file tree
deploy/helm/commons-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 @@ -53,3 +53,15 @@ rules:
5353 verbs :
5454 - create
5555 - patch
56+ # Required to maintain the CRD. The operator needs to do this, as it needs to enter e.g. it's
57+ # generated certificate in the conversion webhook.
58+ {{ if .Values.maintenance.customResourceDefinitions.maintain }}
59+ - apiGroups :
60+ - apiextensions.k8s.io
61+ resources :
62+ - customresourcedefinitions
63+ verbs :
64+ - get
65+ - create
66+ - patch
67+ {{ end }}
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 @@ -46,6 +46,15 @@ affinity: {}
4646# See the https://docs.stackable.tech/home/stable/guides/kubernetes-cluster-domain guide for details.
4747# kubernetesClusterDomain: my-cluster.local
4848
49+ maintenance :
50+ endOfSupportCheck :
51+ enabled : true
52+ # mode: offline
53+ # interval: 24h
54+
55+ customResourceDefinitions :
56+ maintain : true
57+
4958# See all available options and detailed explanations about the concept here:
5059# https://docs.stackable.tech/home/stable/concepts/telemetry/
5160telemetry :
You can’t perform that action at this time.
0 commit comments