File tree Expand file tree Collapse file tree
deploy/helm/secret-operator Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717 {{- toYaml . | nindent 8 }}
1818 {{- end }}
1919 labels :
20- # TODO (@Techassi): Gate this behind the maintance.customResourceDefinition. maintain field
20+ {{- if .Values.maintenance.customResourceDefinitions. maintain }}
2121 webhook.stackable.tech/conversion : enabled
22+ {{- end }}
2223 {{- include "operator.selectorLabels" . | nindent 8 }}
2324 spec :
2425 {{- with .Values.image.pullSecrets }}
5051 # (which is turn pulls in https://github.com/stackabletech/operator-rs/blob/main/crates/stackable-operator/src/cli.rs)
5152 # You can read there about the expected values and purposes.
5253
53- # TODO (@Techassi): Gate the DISABLE_CRD_MAINTENANCE env var behind maintance.customResourceDefinition.maintain field
54-
5554 # Sometimes products need to know the operator image, e.g. the opa-bundle-builder OPA
5655 # sidecar uses the operator image.
5756 - name : OPERATOR_IMAGE
8483 value : {{ .Values.kubernetesClusterDomain | quote }}
8584 {{- end }}
8685 {{- include "telemetry.envVars" . | nindent 12 }}
86+ {{- include "maintenance.envVars" . | nindent 12 }}
8787 {{- with .Values.controllerService.nodeSelector }}
8888 nodeSelector :
8989 {{- toYaml . | nindent 8 }}
Original file line number Diff line number Diff line change 9191 value : {{ .Values.kubernetesClusterDomain | quote }}
9292 {{- end }}
9393 {{- include "telemetry.envVars" . | nindent 12 }}
94+ {{- include "maintenance.envVars" . | nindent 12 }}
9495 volumeMounts :
9596 - name : csi
9697 mountPath : /csi
Original file line number Diff line number Diff line change @@ -122,8 +122,10 @@ rules:
122122 - secretclasses
123123 - truststores
124124 verbs :
125+ {{- if .Values.maintenance.customResourceDefinitions.maintain }}
125126 - create
126127 - patch
128+ {{- end }}
127129 - get
128130 - watch
129131 - list
Original file line number Diff line number Diff line change 1+ {{- if .Values.maintenance.customResourceDefinitions.maintain }}
12---
23apiVersion : v1
34kind : Service
@@ -10,11 +11,11 @@ metadata:
1011 {{- include "operator.labels" . | nindent 4 }}
1112spec :
1213 selector :
13- # TODO (@Techassi): Gate this behind the maintance.customResourceDefinition.maintain field
1414 webhook.stackable.tech/conversion : enabled
1515 {{- include "operator.selectorLabels" . | nindent 4 }}
1616 ports :
1717 - name : conversion-webhook
1818 protocol : TCP
1919 port : 8443
2020 targetPort : 8443
21+ {{- end }}
Original file line number Diff line number Diff line change @@ -119,6 +119,15 @@ secretClasses:
119119 # Defaults to the namespace where secret-op is installed.
120120 caSecretNamespace : null
121121
122+ maintenance :
123+ endOfSupportCheck :
124+ enabled : true
125+ # mode: offline
126+ # interval: 24h
127+
128+ customResourceDefinitions :
129+ maintain : true
130+
122131# See all available options and detailed explanations about the concept here:
123132# https://docs.stackable.tech/home/stable/concepts/telemetry/
124133telemetry :
You can’t perform that action at this time.
0 commit comments