Skip to content

Commit

Permalink
Only use version tag in topology spread constraints when the label is…
Browse files Browse the repository at this point in the history
… set
  • Loading branch information
bastianeicher committed May 28, 2023
1 parent 90baf97 commit c72f653
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/generic-service/templates/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,10 @@ spec:
whenUnsatisfiable: {{ if .Values.scheduling.enforceReplicaSpread }}DoNotSchedule{{ else }}ScheduleAnyway{{ end }}
labelSelector:
matchLabels: {{- include "generic-service.selector-labels" . | nindent 14 }}
{{- if or .Values.version (not (hasPrefix "@" .Values.image.tag)) }}
# Allow rebalancing during update
version: {{ .Values.version | default .Values.image.tag | quote }}
{{- end }}

affinity:
{{- if .Values.scheduling.podAffinity }}
Expand Down

0 comments on commit c72f653

Please sign in to comment.