Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions charts/protector/templates/agent-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ spec:
type: RollingUpdate
rollingUpdate:
maxSurge: {{ .Values.agent.maxSurge }}
# A DaemonSet rollingUpdate may not have both maxSurge and maxUnavailable
# non-zero (Kubernetes rejects it). Surging ⇒ maxUnavailable:0; no surge ⇒
# fall back to the default terminate-then-replace (maxUnavailable:1).
maxUnavailable: {{ if gt (int .Values.agent.maxSurge) 0 }}0{{ else }}1{{ end }}
selector:
matchLabels:
{{- include "protector.agentSelectorLabels" . | nindent 6 }}
Expand Down