From 7704d84529700c84b1bad41eab534acc296ea98c Mon Sep 17 00:00:00 2001 From: ag Date: Tue, 17 Dec 2024 16:49:09 +0100 Subject: [PATCH] Update examples/operator templates and values --- examples/operator/templates/deployment.yaml | 7 +++++++ examples/operator/values.yaml | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/examples/operator/templates/deployment.yaml b/examples/operator/templates/deployment.yaml index a32a57b..e74a7dc 100644 --- a/examples/operator/templates/deployment.yaml +++ b/examples/operator/templates/deployment.yaml @@ -7,6 +7,13 @@ metadata: {{- include "operator.labels" . | nindent 4 }} spec: replicas: {{ .Values.controllerManager.replicas }} + strategy: + rollingUpdate: + maxSurge: {{ .Values.controllerManager.strategy.rollingUpdate.maxSurge | quote + }} + maxUnavailable: {{ .Values.controllerManager.strategy.rollingUpdate.maxUnavailable + | quote }} + type: {{ .Values.controllerManager.strategy.type | quote }} selector: matchLabels: control-plane: controller-manager diff --git a/examples/operator/values.yaml b/examples/operator/values.yaml index 399c6e5..a0c2c88 100644 --- a/examples/operator/values.yaml +++ b/examples/operator/values.yaml @@ -49,6 +49,11 @@ controllerManager: serviceAccount: annotations: k8s.acme.org/some-meta-data: ACME Inc. + strategy: + rollingUpdate: + maxSurge: 25% + maxUnavailable: 25% + type: RollingUpdate kubernetesClusterDomain: cluster.local managerConfig: controllerManagerConfigYaml: |-