Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#421 from lianghao208/pluginconfig
Browse files Browse the repository at this point in the history
enhancement: support customizing pluginConfig
  • Loading branch information
k8s-ci-robot authored Sep 1, 2022
2 parents 0323736 + cb9fd2c commit d831125
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ data:
{{- range $.Values.plugins.disabled }}
- name: {{ title . }}
{{- end }}
{{- if $.Values.pluginConfig }}
pluginConfig: {{ toYaml $.Values.pluginConfig | nindent 6 }}
{{- end }}
{{- /* TODO: wire CRD installation with enabled plugins. */}}
{{- end }}
Expand Down
12 changes: 12 additions & 0 deletions manifests/install/charts/as-a-second-scheduler/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,15 @@ plugins:
enabled: ["Coscheduling","CapacityScheduling","NodeResourceTopologyMatch","NodeResourcesAllocatable"]
disabled: ["PrioritySort"] # only in-tree plugins need to be defined here

# Customize the enabled plugins' config.
# Refer to the "pluginConfig" section of manifests/<plugin>/scheduler-config.yaml.
# For example, for Coscheduling plugin, you want to customize the permit waiting timeout to 10 seconds:
pluginConfig:
- name: Coscheduling
args:
permitWaitingTimeSeconds: 10 # default is 60
# Or, customize the other plugins
# - name: NodeResourceTopologyMatch
# args:
# scoringStrategy:
# type: MostAllocated # default is LeastAllocated

0 comments on commit d831125

Please sign in to comment.