-
Notifications
You must be signed in to change notification settings - Fork 40k
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
[FG:InPlacePodVerticalScaling] Drop InPlacePodVerticalScaling support in windows #128623
Conversation
/assign @tallclair |
758101f
to
f67468b
Compare
@@ -220,10 +220,12 @@ var ( | |||
// ContainerLogsDir can be overwritten for testing usage | |||
ContainerLogsDir = DefaultContainerLogsDir | |||
etcHostsPath = getContainerEtcHostsPath() | |||
|
|||
goos = sysruntime.GOOS |
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.
nit: I'd prefer to keep this inline, rather than assigning to a variable. It's just a constant, no cost to calling it multiple times.
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.
It is mainly for unit tests. If I mutate runtime.GOOS during unit tests, then it might affect other unit tests running in parallel. Let me verify 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.
Looks like runtime.GOOS is a constant. So I won't be able to write unit tests for this. WDYT?
./kubelet_test.go:2753:19: cannot assign to runtime.GOOS (neither addressable nor a map index expression)
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.
Ah, makes sense. Can you add a comment then? Something like // exposed for testing
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.
Added the comment. I'm not sure if there's any security risk by switching between runtime.GOOS
constant and goos
variable
f41362a
to
1b4510b
Compare
/triage accepted |
/assign @thockin |
1b4510b
to
aae54f8
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.
/approve for API
aae54f8
to
207842d
Compare
/retest |
/lgtm Thanks! |
LGTM label has been added. Git tree hash: cbba31765cea4ed8680b84c1c1b9c76292e73efb
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: AnishShah, tallclair, thockin 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 |
Did we check if there are any test-infra or e2e tests we will need to clean up? |
I saw that we have some windows related presubmits for this feature. |
We skip pod resize tests for windows nodes today - kubernetes/test/e2e/node/pod_resize.go Lines 377 to 379 in 9ba42a5
|
Those failures might be due to #128598 ? |
Hey @thockin @tallclair @AnishShah |
These aren't failures but I saw that we had windows jobs that target this. |
/test |
@kannon92: The
The following commands are available to trigger optional jobs:
Use
In response to this:
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. |
/test pull-kubernetes-e2e-capz-windows-alpha-feature-vpa |
cc @marosset |
/test pull-kubernetes-e2e-capz-windows-alpha-feature-vpa |
Failures from these windows jobs seem unrelated - https://testgrid.k8s.io/sig-windows-master-release#capz-windows-master-alpha-features InPlacePodVerticalScaling tests are being skipped. |
Please check #128897 (comment) , WDYT @AnishShah |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
This change drops support for InPlacePodVerticalScaling feature in Windows.
Which issue(s) this PR fixes:
Fixes #128617
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: