Skip to content

Commit

Permalink
Add topology spread constraints to the admission controller
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobsalway committed Jul 30, 2024
1 parent d7751d3 commit 93d4234
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions helm-charts/yunikorn/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ The following table lists the configurable parameters of the YuniKorn chart and
| `admissionController.nodeSelector` | Admission controller deployment nodeSelector(s) | `{}` |
| `admissionController.tolerations` | Admission controller deployment tolerations | `[]` |
| `admissionController.affinity` | Admission controller deployment affinity | `{}` |
| `admissionController.topologySpreadConstraints` | Admission controller deployment topology spread constraints | `[]` |
| `admissionController.service.type` | Admission controller service type | `ClusterIP` |
| `admissionController.priorityClassName` | Admission controller pod priority | `""` |
| `priorityClassName` | Scheduler pod priority | `""` |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.admissionController.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: yunikorn-admission-controller
image: "{{ .Values.admissionController.image.repository }}:{{ .Values.admissionController.image.tag }}"
Expand Down
1 change: 1 addition & 0 deletions helm-charts/yunikorn/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ admissionController:
nodeSelector: {}
tolerations: []
affinity: {}
topologySpreadConstraints: []
service:
type: ClusterIP
processNamespaces: null # deprecated; use admissionController.filtering.processNamespaces in yunikornDefaults
Expand Down

0 comments on commit 93d4234

Please sign in to comment.