Skip to content

Commit

Permalink
feat: Enable setting schedulerName in Helm chart (#7456)
Browse files Browse the repository at this point in the history
Co-authored-by: Robin Ketelbuters <[email protected]>
  • Loading branch information
robinkb and Robin Ketelbuters authored Dec 5, 2024
1 parent 51eafa6 commit 4ad80a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/karpenter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ spec:
{{- if .Values.hostNetwork }}
hostNetwork: true
{{- end }}
{{- with .Values.schedulerName }}
schedulerName: {{ . | quote }}
{{- end }}
containers:
- name: controller
securityContext:
Expand Down
2 changes: 2 additions & 0 deletions charts/karpenter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ terminationGracePeriodSeconds:
# -- Bind the pod to the host network.
# This is required when using a custom CNI.
hostNetwork: false
# -- Specify which Kubernetes scheduler should dispatch the pod.
schedulerName: default-scheduler
# -- Configure the DNS Policy for the pod
dnsPolicy: ClusterFirst
# -- Configure DNS Config for the pod
Expand Down

0 comments on commit 4ad80a5

Please sign in to comment.