-
Notifications
You must be signed in to change notification settings - Fork 264
Add support for setting default value to the configuration #698
Conversation
/assign @k82cn |
@k82cn The test is happy now. PTAL. |
"github.com/kubernetes-sigs/kube-batch/pkg/scheduler/framework" | ||
) | ||
|
||
const name = "conformance" | ||
|
||
func init() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please do not modify plugins one by one, that's ok to set default directly after we load config.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I do not catch it. How to set default directly?
pkg/scheduler/framework/plugins.go
Outdated
@@ -47,6 +51,39 @@ func GetPluginBuilder(name string) (PluginBuilder, bool) { | |||
return pb, found | |||
} | |||
|
|||
var pluginConfMutex sync.Mutex |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I means just set default value of each config to make it simple :)
@k82cn All problems addressed. PTAL. |
@k82cn Addressed. PTAL. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hex108, k82cn The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Add support for setting default value to the configuration
Add support for setting default value to the configuration
Add support for setting default value to the configuration
What this PR does / why we need it:
Add support for setting default value to the configuration
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #695
Special notes for your reviewer:
Release note: