-
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
kubeproxy: Migrate cleanup
flag to config
#94559
kubeproxy: Migrate cleanup
flag to config
#94559
Conversation
Welcome @mayankshah1607! |
Hi @mayankshah1607. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
Pinging @mtaufen for a review! 😄 |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: mayankshah1607 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
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. |
/ok-to-test |
/lgtm |
/retest |
Signed-off-by: Mayank Shah <[email protected]>
6491b3d
to
58b1728
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.
This looks good, one comment on how to fix the tests
@@ -123,6 +123,7 @@ func autoConvert_v1alpha1_KubeProxyConfiguration_To_config_KubeProxyConfiguratio | |||
} | |||
out.ShowHiddenMetricsForVersion = in.ShowHiddenMetricsForVersion | |||
out.DetectLocalMode = config.LocalMode(in.DetectLocalMode) | |||
out.CleanupAndExit = in.CleanupAndExit |
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.
The round trip test is failing because you are missing this line for the reverse autoConvert_config_KubeProxyConfiguration_To_v1alpha1_KubeProxyConfiguration
on line 167.
You can add this automatically by either running the test bazel test //pkg/proxy/apis/config/scheme:go_default_test
or running make update
Signed-off-by: Mayank Shah <[email protected]>
Thanks @cmluciano @mtaufen - I've fixed it! Not really sure why the Azure disk E2E is failing though. Any tips on that? |
I was not even aware that this job existed. It seems pretty flaky. /retest |
Thanks! The tests seem to pass now :) |
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.
Can you add a release note on this too @mayankshah1607 ?
@cmluciano Done! :) |
/lgtm |
doe sit makes sense to move this flag to config? /assign @thockin |
Then does this flag only exist for using kube-proxy as a CLI tool? |
I have the same question 😄 , I would say yes, but Tim will know best for sure |
I lost track of this PR, so sorry! I do NOT think we should move this into config - it's a very imperative and human-oriented flag. |
Signed-off-by: Mayank Shah [email protected]
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
This PR migrates
--cleanup
flag to kube-proxy configWhich issue(s) this PR fixes:
Part of #86024
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: