-
Notifications
You must be signed in to change notification settings - Fork 38.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
Cleanup/remove service affinity plugin #105588
Cleanup/remove service affinity plugin #105588
Conversation
Skipping CI for Draft Pull Request. |
@kerthcet: This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
This PR may require API review. If so, when the changes are ready, complete the pre-review checklist and request an API review. Status of requested reviews is tracked in the API Review project. |
2a1d38c
to
b8700ec
Compare
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.
some nits. LGTM otherwise.
{ | ||
name: "different weights for ServiceAntiAffinity custom priority", | ||
policy: config.Policy{ | ||
Priorities: []config.PriorityPolicy{ | ||
{Name: "customPriority1", Weight: 1, Argument: &config.PriorityArgument{ServiceAntiAffinity: &config.ServiceAntiAffinity{}}}, | ||
{Name: "customPriority2", Weight: 2, Argument: &config.PriorityArgument{ServiceAntiAffinity: &config.ServiceAntiAffinity{}}}, | ||
}, | ||
}, | ||
expected: errors.New("ServiceAntiAffinity priority \"customPriority2\" has a different weight with \"customPriority1\""), | ||
}, |
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.
Ditto. Replace it instead of removing it.
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.
b8700ec
to
c32f617
Compare
/lgtm |
@kubernetes/api-reviewers for API review. |
@@ -72,9 +72,6 @@ type PriorityPolicy struct { | |||
// PredicateArgument represents the arguments to configure predicate functions in scheduler policy configuration. | |||
// Only one of its members may be specified | |||
type PredicateArgument struct { | |||
// The predicate that provides affinity for pods belonging to a service |
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.
@liggitt this may look strange, removing v1 types; but those types are not usable now that we completely removed the flag that allowed specifying the old policy configuration file and v1beta1 CC which used those types.
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.
is it expected that the legacy types are removed piece mill? if we really can't load that file any more, can all the types in legacy_types be removed?
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.
if we really can't load that file any more, can all the types in legacy_types be removed?
Yes, we will raise a PR right after this one to remove legacy_types.
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.
yes, we want to remove the whole file, but there are a lot of things that needs cleaning up internally and this PR will help make the following one more manageable.
/test pull-kubernetes-unit |
Signed-off-by: kerthcet <kerthcet@gmail.com>
9ced79d
to
fc9533e
Compare
/label api-review |
please updated the description to say it is part of #92143 |
/lgtm /label api-review |
/approve |
if this was already not usable because the legacy policy file could not be set, no release note is needed |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahg-g, Huang-Wei, kerthcet, liggitt 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 |
gotcha, done. |
What type of PR is this?
/kind cleanup
/sig scheduling
What this PR does / why we need it:
part of kubernetes/enhancements#2901
Which issue(s) this PR fixes:
Part of #92143
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: