Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add support for topology spread constraints. #360

Merged
merged 2 commits into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion charts/yourls/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
version: 5.12.10
version: 5.13.0
name: yourls
description: Your Own URL Shortener
appVersion: "1.9.2"
Expand Down
3 changes: 3 additions & 0 deletions charts/yourls/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ spec:
{{- if .Values.tolerations }}
tolerations: {{- include "common.tplvalues.render" (dict "value" .Values.tolerations "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.topologySpreadConstraints }}
topologySpreadConstraints: {{- include "common.tplvalues.render" (dict "value" .Values.topologySpreadConstraints "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.podSecurityContext.enabled }}
securityContext: {{- omit .Values.podSecurityContext "enabled" | toYaml | nindent 8 }}
{{- end }}
Expand Down
3 changes: 3 additions & 0 deletions charts/yourls/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,9 @@
"tolerations": {
"type": "array"
},
"topologySpreadConstraints": {
"type": "array"
},
"updateStrategy": {
"type": "object",
"description": "https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy",
Expand Down
4 changes: 4 additions & 0 deletions charts/yourls/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,10 @@ nodeSelector: {}
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
##
tolerations: []
## @param topologySpreadConstraints Topology Spread Constraints for pod assignment
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/
##
topologySpreadConstraints: []
## YOURLS containers' resource requests and limits
## ref: https://kubernetes.io/docs/user-guide/compute-resources/
## @param resources.limits The resources limits for the YOURLS container
Expand Down