Skip to content

Commit

Permalink
Add labelSelector and matchLabelKeys to topologySpreadConstraints (#160)
Browse files Browse the repository at this point in the history
Co-authored-by: Patrick Vickery <pvickery@YYZ-Patrick-Vickerys-Mac.local>
  • Loading branch information
pvickery-ParamountCommerce and Patrick Vickery authored Aug 1, 2024
1 parent 18d534c commit 1c5f382
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/unleash-edge/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ icon: https://docs.getunleash.io/img/logo.svg

type: application

version: 2.6.5
version: 2.6.6

appVersion: "v19.2.0"

Expand Down
5 changes: 5 additions & 0 deletions charts/unleash-edge/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ spec:
topologySpreadConstraints:
{{- range . }}
- {{ toYaml . | nindent 8 | trim }}
labelSelector:
matchLabels:
{{- include "unleash-edge.selectorLabels" $ | nindent 12 }}
matchLabelKeys:
- pod-template-hash
{{- end }}
{{- end }}
{{- with .Values.hostAliases }}
Expand Down
2 changes: 1 addition & 1 deletion charts/unleash-proxy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.8.4
version: 0.8.5

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
5 changes: 5 additions & 0 deletions charts/unleash-proxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,11 @@ spec:
topologySpreadConstraints:
{{- range . }}
- {{ toYaml . | nindent 8 | trim }}
labelSelector:
matchLabels:
{{- include "unleash-proxy.selectorLabels" $ | nindent 12 }}
matchLabelKeys:
- pod-template-hash
{{- end }}
{{- end }}
{{- with .Values.hostAliases }}
Expand Down
5 changes: 5 additions & 0 deletions charts/unleash/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,11 @@ spec:
topologySpreadConstraints:
{{- range . }}
- {{ toYaml . | nindent 8 | trim }}
labelSelector:
matchLabels:
{{- include "unleash.selectorLabels" $ | nindent 12 }}
matchLabelKeys:
- pod-template-hash
{{- end }}
{{- end }}
{{- with .Values.hostAliases }}
Expand Down

0 comments on commit 1c5f382

Please sign in to comment.