-
Notifications
You must be signed in to change notification settings - Fork 40.9k
[WIP] HPA - pod selection strategy #132018
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
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Omer Aplatony <[email protected]>
Skipping CI for Draft Pull Request. |
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. 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-sigs/prow repository. |
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-sigs/prow repository. |
Signed-off-by: Omer Aplatony <[email protected]>
Signed-off-by: Omer Aplatony <[email protected]>
Signed-off-by: Omer Aplatony <[email protected]>
Signed-off-by: Omer Aplatony <[email protected]>
Signed-off-by: Omer Aplatony <[email protected]>
Signed-off-by: Omer Aplatony <[email protected]>
Signed-off-by: Omer Aplatony <[email protected]>
Signed-off-by: Omer Aplatony <[email protected]>
Signed-off-by: Omer Aplatony <[email protected]>
Adding label 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-sigs/prow repository. |
Signed-off-by: Omer Aplatony <[email protected]>
Signed-off-by: Omer Aplatony <[email protected]>
Signed-off-by: Omer Aplatony <[email protected]>
Signed-off-by: Omer Aplatony <[email protected]>
Signed-off-by: Omer Aplatony <[email protected]>
This reverts commit 0796eef. Signed-off-by: Omer Aplatony <[email protected]>
Signed-off-by: Omer Aplatony <[email protected]>
oldStrategy := autoscalingv2.LabelSelector // default | ||
if oldHPA.Spec.SelectionStrategy != nil { | ||
oldStrategy = *oldHPA.Spec.SelectionStrategy | ||
} | ||
|
||
newStrategy := autoscalingv2.LabelSelector // default | ||
if newHPA.Spec.SelectionStrategy != nil { | ||
newStrategy = *newHPA.Spec.SelectionStrategy | ||
} | ||
|
||
if oldStrategy != newStrategy { |
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.
Any reason this can't be simplified into:
oldStrategy := autoscalingv2.LabelSelector // default | |
if oldHPA.Spec.SelectionStrategy != nil { | |
oldStrategy = *oldHPA.Spec.SelectionStrategy | |
} | |
newStrategy := autoscalingv2.LabelSelector // default | |
if newHPA.Spec.SelectionStrategy != nil { | |
newStrategy = *newHPA.Spec.SelectionStrategy | |
} | |
if oldStrategy != newStrategy { | |
if oldHPA.Spec.SelectionStrategy != newHPA.Spec.SelectionStrategy { |
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.
Oh, I guess the variables are used on line 272
Signed-off-by: Omer Aplatony <[email protected]>
This reverts commit 061de86.
Signed-off-by: Omer Aplatony <[email protected]>
What type of PR is this?
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: