Skip to content

Commit

Permalink
Refactor deployment.yaml to streamline strategy configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
qjoly committed Dec 13, 2024
1 parent c1e9472 commit 1c7815a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions charts/common/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,8 @@ spec:
selector:
matchLabels:
app: {{ .Release.Name }}
{{- with .Values.deployment.strategy }}
strategy:
type: {{ .type }}
rollingUpdate:
maxUnavailable: {{ .rollingUpdate.maxUnavailable }}
maxSurge: {{ .rollingUpdate.maxSurge }}
{{- end }}
{{- toYaml .Values.deployment.strategy | nindent 4 }}
template:
metadata:
labels:
Expand Down

0 comments on commit 1c7815a

Please sign in to comment.