Skip to content
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

Deprecate AlgorithmSource from scheduler ComponentConfig #87526

Closed
ahg-g opened this issue Jan 24, 2020 · 19 comments
Closed

Deprecate AlgorithmSource from scheduler ComponentConfig #87526

ahg-g opened this issue Jan 24, 2020 · 19 comments
Assignees
Labels
kind/feature Categorizes issue or PR as related to a new feature. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. sig/scheduling Categorizes an issue or PR as relevant to SIG Scheduling.

Comments

@ahg-g
Copy link
Member

ahg-g commented Jan 24, 2020

AlgorithmSource was meant to be a bridge to allow specifying a Policy file in ComponentConfig. Now that all Policy configuration is available through ComponentConfig directly, AlgorithmSource is not needed. This is the first step towards deprecating scheduler Policy file.

/assign @alculquicondor
/cc @ravisantoshgudimetla @Huang-Wei @damemi

/sig scheduling

@ahg-g ahg-g added the kind/feature Categorizes issue or PR as related to a new feature. label Jan 24, 2020
@k8s-ci-robot k8s-ci-robot added the sig/scheduling Categorizes an issue or PR as relevant to SIG Scheduling. label Jan 24, 2020
@alculquicondor
Copy link
Member

If agreed, we can do this as part of https://github.com/kubernetes/enhancements/blob/master/keps/sig-scheduling/20200114-multi-scheduling-profiles.md, which is adding v1alpha2

Ref #85737

@Huang-Wei
Copy link
Member

+1 on adding this as part of v1alpha2.

And in the KEP, we should point out that if a deprecated option (--algorithm-provider) is provided, how we'd honor the precedence. This is needed as the deprecated option is documented in the [official doc].(https://kubernetes.io/docs/reference/command-line-tools-reference/kube-scheduler/)

@alculquicondor
Copy link
Member

Our current behavior is that when using component config, command line flags are ignored, except for --address and --port

@damemi
Copy link
Contributor

damemi commented Feb 10, 2020

/assign

@alculquicondor
Copy link
Member

/unassign

@alculquicondor
Copy link
Member

We can proceed with the 2nd part of this after #89298 lands

@alculquicondor
Copy link
Member

Actually, we still need to support the command line flag, don't we?

@gavinfish
Copy link
Contributor

/cc

@damemi
Copy link
Contributor

damemi commented May 20, 2020

Bumping this, do we want to go forward with deprecating AlgorithmSource? Policy config is gone in v1alpha2 (and v1alpha1 is gone now too, right?) So the only thing AlgorithmSource still configures is the provider (which is only default or autoscaler

return Registry{
schedulerapi.SchedulerDefaultProviderName: defaultConfig,
ClusterAutoscalerProvider: caConfig,
)

So we could still support the --algorithm-provider flag if we need to but cut out everything else. What's the deprecation policy for this?

@alculquicondor
Copy link
Member

I assume you meant removing it from pkg/scheduler/apis/config/types.go.

I'm fine with removing it as long as we can still support the flags in a reasonable way. But that code would go away once we graduate component config to GA in 2 releases. So I'm not sure if it's worth the refactoring effort.

@damemi
Copy link
Contributor

damemi commented May 21, 2020

But that code would go away once we graduate component config to GA in 2 releases.

I'm fine waiting for this then, just wanted to check in on this issue since it hasn't had activity in some time to clarify where we are

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Aug 19, 2020
@damemi
Copy link
Contributor

damemi commented Aug 19, 2020

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Aug 19, 2020
@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 17, 2020
@damemi
Copy link
Contributor

damemi commented Nov 17, 2020

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 17, 2020
@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 15, 2021
@ahg-g
Copy link
Member Author

ahg-g commented Feb 15, 2021

/remove-lifecycle stale

AlgorithmSource was removed from component config external API, but still exist in the internal type to support the legacy policy API.

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 15, 2021
@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label May 16, 2021
@ahg-g
Copy link
Member Author

ahg-g commented May 17, 2021

I think we can close this, removing the internal field will be part of policy API deprecation.

@ahg-g ahg-g closed this as completed May 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. sig/scheduling Categorizes an issue or PR as relevant to SIG Scheduling.
Projects
None yet
Development

No branches or pull requests

7 participants