Skip to content

Commit c216e2e

Browse files
committed
feat(helm): Use new values in templates
1 parent fe17308 commit c216e2e

5 files changed

Lines changed: 17 additions & 4 deletions

File tree

deploy/helm/secret-operator/templates/controller-deployment.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ spec:
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 }}
@@ -50,8 +51,6 @@ spec:
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
@@ -84,6 +83,7 @@ spec:
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 }}

deploy/helm/secret-operator/templates/csi-node-driver-daemonset.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ spec:
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

deploy/helm/secret-operator/templates/roles.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

deploy/helm/secret-operator/templates/service.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if .Values.maintenance.customResourceDefinitions.maintain }}
12
---
23
apiVersion: v1
34
kind: Service
@@ -10,11 +11,11 @@ metadata:
1011
{{- include "operator.labels" . | nindent 4 }}
1112
spec:
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 }}

deploy/helm/secret-operator/values.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff 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/
124133
telemetry:

0 commit comments

Comments
 (0)