From 4fa7dfbb471a2ef3c3881914201b076d6f446028 Mon Sep 17 00:00:00 2001 From: Raphaela <44403256+elatella@users.noreply.github.com> Date: Wed, 10 Apr 2024 22:49:07 +0200 Subject: [PATCH] Update deployment.yaml Signed-off-by: Raphaela <44403256+elatella@users.noreply.github.com> --- bitnami/jenkins/templates/deployment.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bitnami/jenkins/templates/deployment.yaml b/bitnami/jenkins/templates/deployment.yaml index 8883371c66fc24..7b3af2b1aa52f4 100644 --- a/bitnami/jenkins/templates/deployment.yaml +++ b/bitnami/jenkins/templates/deployment.yaml @@ -16,7 +16,9 @@ spec: {{- $podLabels := include "common.tplvalues.merge" ( dict "values" ( list .Values.podLabels .Values.commonLabels ) "context" . ) }} selector: matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 6 }} - replicas: {{ .Values.replicaCount }} + {{- if .Values.replicaCount }} + {{- include "common.tplvalues.render" (dict "value" .Values.replicas "context" $) | nindent 8 }} + {{- end }} strategy: {{- include "common.tplvalues.render" (dict "value" .Values.updateStrategy "context" $ ) | nindent 4 }} template: metadata: