fix: support changing numbers of replicas
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Markus Pesch 2024-02-04 22:23:49 +01:00
parent 217eab774b
commit ffbe7db0f9
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982
2 changed files with 9 additions and 0 deletions

View File

@ -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 }}

View File

@ -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: