From 75fb0971b4118018172cb10ae64df186b1167879 Mon Sep 17 00:00:00 2001 From: Christos Kotsis Date: Tue, 30 May 2023 16:06:01 +0300 Subject: [PATCH] cp-kafka-connect: deploymentStrategy Allow setting the deployment startegy for the deployment For example allow setting a RollingUpdate stategy. --- charts/cp-kafka-connect/templates/deployment.yaml | 4 ++++ charts/cp-kafka-connect/values.yaml | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/charts/cp-kafka-connect/templates/deployment.yaml b/charts/cp-kafka-connect/templates/deployment.yaml index 4582f4ac..224bc449 100644 --- a/charts/cp-kafka-connect/templates/deployment.yaml +++ b/charts/cp-kafka-connect/templates/deployment.yaml @@ -12,6 +12,10 @@ metadata: release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: + {{- if .Values.deploymentStrategy }} + strategy: + {{- toYaml .Values.deploymentStrategy | nindent 4 }} + {{- end }} replicas: {{ .Values.replicaCount }} selector: matchLabels: diff --git a/charts/cp-kafka-connect/values.yaml b/charts/cp-kafka-connect/values.yaml index ff2cad6c..b5ed3d9b 100644 --- a/charts/cp-kafka-connect/values.yaml +++ b/charts/cp-kafka-connect/values.yaml @@ -133,3 +133,10 @@ livenessProbe: # initialDelaySeconds: 30 # periodSeconds: 5 # failureThreshold: 10 + +# Example deployment strategy +# deploymentStrategy: +# type: RollingUpdate +# rollingUpdate: +# maxUnavailable: 1 +# maxSurge: 1