Skip to content

Commit

Permalink
Allow topologySpreadConstraints for unleash (#158)
Browse files Browse the repository at this point in the history
Co-authored-by: Patrick Vickery <[email protected]>
  • Loading branch information
pvickery-ParamountCommerce and Patrick Vickery authored Jul 30, 2024
1 parent e0dbfc7 commit 68731b8
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 2 deletions.
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.3
version: 0.8.4

# 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
6 changes: 6 additions & 0 deletions charts/unleash-proxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,12 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.topologySpreadConstraints }}
topologySpreadConstraints:
{{- range . }}
- {{ toYaml . | nindent 8 | trim }}
{{- end }}
{{- end }}
{{- with .Values.hostAliases }}
hostAliases:
{{- toYaml . | nindent 8 }}
Expand Down
5 changes: 5 additions & 0 deletions charts/unleash-proxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ tolerations: []

affinity: {}

topologySpreadConstraints: {}
# - maxSkew: 1
# topologyKey: topology.kubernetes.io/zone
# whenUnsatisfiable: DoNotSchedule

# Adds environment variables
env: []
# - name: LOG_LEVEL
Expand Down
2 changes: 1 addition & 1 deletion charts/unleash/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: 5.1.3
version: 5.1.4

appVersion: "6.0.6"

Expand Down
6 changes: 6 additions & 0 deletions charts/unleash/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,12 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.topologySpreadConstraints }}
topologySpreadConstraints:
{{- range . }}
- {{ toYaml . | nindent 8 | trim }}
{{- end }}
{{- end }}
{{- with .Values.hostAliases }}
hostAliases:
{{- toYaml . | nindent 8 }}
Expand Down
5 changes: 5 additions & 0 deletions charts/unleash/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -242,3 +242,8 @@ podDisruptionBudget:
enabled: false
minAvailable:
maxUnavailable: 1

topologySpreadConstraints: {}
# - maxSkew: 1
# topologyKey: topology.kubernetes.io/zone
# whenUnsatisfiable: DoNotSchedule

0 comments on commit 68731b8

Please sign in to comment.