From ffbe7db0f9ed25a554b259fcd83a58e3ee3e5f34 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sun, 4 Feb 2024 22:23:49 +0100 Subject: [PATCH] fix: support changing numbers of replicas --- templates/deployment.yaml | 5 +++++ values.yaml | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/templates/deployment.yaml b/templates/deployment.yaml index 2534c15..782d32c 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -5,6 +5,11 @@ metadata: labels: {{- include "drone.labels" . | nindent 4 }} spec: + {{- if .Values.config.DRONE_DATABASE_DRIVER | default "sqlite3" | eq "sqlite3" }} + replicas: 1 + {{- else }} + replicas: {{ .Values.replicas | default 1 }} + {{- end }} selector: matchLabels: {{- include "drone.selectorLabels" . | nindent 6 }} diff --git a/values.yaml b/values.yaml index fc0dd8f..f3944a9 100644 --- a/values.yaml +++ b/values.yaml @@ -19,6 +19,10 @@ podPriorityClassName: "" podSecurityContext: {} # fsGroup: 2000 +# Increasing the amount of replicas has no effect, when `DRONE_DATABASE_DRIVER` +# is set to sqlite3. +replicas: 1 + securityContext: {} # capabilities: # drop: