File tree Expand file tree Collapse file tree
deploy/helm/hbase-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 - events.k8s.io
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 @@ -52,6 +52,15 @@ affinity: {}
5252# See the https://docs.stackable.tech/home/stable/guides/kubernetes-cluster-domain guide for details.
5353# kubernetesClusterDomain: my-cluster.local
5454
55+ maintenance :
56+ endOfSupportCheck :
57+ enabled : true
58+ # mode: offline
59+ # interval: 24h
60+
61+ customResourceDefinitions :
62+ maintain : true
63+
5564# See all available options and detailed explanations about the concept here:
5665# https://docs.stackable.tech/home/stable/concepts/telemetry/
5766telemetry :
You can’t perform that action at this time.
0 commit comments