-
Notifications
You must be signed in to change notification settings - Fork 39.7k
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
Scheduler - not able to read from config file if configmap is not found #59386
Scheduler - not able to read from config file if configmap is not found #59386
Conversation
/sig scheduling |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: k82cn, ravisantoshgudimetla The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
@@ -214,7 +214,7 @@ func (o *Options) applyDeprecatedHealthzPortToConfig() { | |||
// 3. --algorithm-provider to use a named algorithm provider. | |||
func (o *Options) applyDeprecatedAlgorithmSourceOptionsToConfig() { | |||
switch { | |||
case o.useLegacyPolicyConfig: | |||
case o.useLegacyPolicyConfig || (len(o.policyConfigFile) > 0 && o.policyConfigMapName == ""): |
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.
s/o.policyConfigMapName == ""/len(o.policyConfigMapName) == 0/
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.
@bsalamat - Shall I create another PR for this?
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.
@ravisantoshgudimetla No, thers is no need to send another PR.
Thanks for checking.
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.
Ops :)
Automatic merge from submit-queue (batch tested with PRs 59165, 59386). If you want to cherry-pick this change to another branch, please follow the instructions here. |
…fig-flag Automatic merge from submit-queue. UPSTREAM: 59386: Scheduler - not able to read from config file if configmap not found Scheduler is not able to read from config file if configmap is not found. Upstream PR: kubernetes/kubernetes#59386 xref: https://bugzilla.redhat.com/show_bug.cgi?id=1540785 /cc @aveshagarwal @sjenning
…eduler-config-flag Automatic merge from submit-queue. UPSTREAM: 59386: Scheduler - not able to read from config file if configmap not found Scheduler is not able to read from config file if configmap is not found. Upstream PR: kubernetes#59386 xref: https://bugzilla.redhat.com/show_bug.cgi?id=1540785 /cc @aveshagarwal @sjenning Origin-commit: a1c2561ddfcb6c8d54c0188317dfabcbd25eca62
What this PR does / why we need it:
As of now, we are not able to read config file if configmap is not present. The only way to make it work is to enable legacy mode which should not be the case.
xref: https://bugzilla.redhat.com/show_bug.cgi?id=1540785
Release note:
/cc @bsalamat @ironcladlou