Unverified Commit d5803e59 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #65731 from bsalamat/cfg_no_warn

Automatic merge from submit-queue (batch tested with PRs 65040, 65731). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Remove scheduler config deprecated warning as the new component config is still in alpha **What this PR does / why we need it**: The new scheduler's component config file (API) is still in alpha. We shouldn't push users to use the alpha feature as it may change in the future and the changes may not be backward compatible. **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 # **Special notes for your reviewer**: **Release note**: ```release-note NONE ``` /sig scheduling
parents b770083d 68fff1a1
...@@ -145,9 +145,6 @@ func (o *Options) AddFlags(fs *pflag.FlagSet) { ...@@ -145,9 +145,6 @@ func (o *Options) AddFlags(fs *pflag.FlagSet) {
// ApplyTo applies the scheduler options to the given scheduler app configuration. // ApplyTo applies the scheduler options to the given scheduler app configuration.
func (o *Options) ApplyTo(c *schedulerappconfig.Config) error { func (o *Options) ApplyTo(c *schedulerappconfig.Config) error {
if len(o.ConfigFile) == 0 && len(o.WriteConfigTo) == 0 {
glog.Warning("WARNING: all flags other than --config, --write-config-to, and --cleanup are deprecated. Please begin using a config file ASAP.")
}
if len(o.ConfigFile) == 0 { if len(o.ConfigFile) == 0 {
c.ComponentConfig = o.ComponentConfig c.ComponentConfig = o.ComponentConfig
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment