[Charts] Add option to pass in updateStrategy (#838)

This commit is contained in:
modularTaco 2022-03-14 15:04:15 +01:00 committed by GitHub
parent 80c72b590c
commit 02d4324492
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -6,6 +6,8 @@ metadata:
{{- include "woodpecker-server.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
strategy:
{{- toYaml .Values.updateStrategy | nindent 4 }}
selector:
matchLabels:
{{- include "woodpecker-server.selectorLabels" . | nindent 6 }}

View file

@ -1,5 +1,11 @@
replicaCount: 1
updateStrategy:
rollingUpdate:
maxUnavailable: 1
maxSurge: 0
type: RollingUpdate
image:
registry: docker.io
repository: woodpeckerci/woodpecker-server