Skip to content

Commit

Permalink
feat: add ability to define deployment strategy
Browse files Browse the repository at this point in the history
Signed-off-by: ericgraf <[email protected]>
  • Loading branch information
ericgraf committed Jan 31, 2024
1 parent f535ead commit 0320382
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/zot/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
{{- include "zot.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
{{- with .Values.strategy }}
strategy:
{{- toYaml . | nindent 4 }}
{{- end }}
selector:
matchLabels:
{{- include "zot.selectorLabels" . | nindent 6 }}
Expand Down
6 changes: 6 additions & 0 deletions charts/zot/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -171,3 +171,9 @@ extraVolumeMounts: []
extraVolumes: []
# - name: data
# emptyDir: {}

# Deployment strategy type
strategy:
type: RollingUpdate
# rollingUpdate:
# maxUnavailable: 25%

0 comments on commit 0320382

Please sign in to comment.