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
Fixed ResourceConsumer.CleanUp to properly clean up non-replication-controller resources and pods #46833
Conversation
Hi @wasylkowski. 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 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. I understand the commands that are listed here. |
@k8s-bot ok to test |
@k8s-bot ok to test |
/assign @wojtek-t |
@k8s-bot pull-kubernetes-e2e-kops-aws test this |
KindRC = "replicationController" | ||
KindDeployment = "deployment" | ||
KindReplicaSet = "replicaset" | ||
KindRC = "ReplicationController" |
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.
How did it work before?
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 worked because during resource creation these constants were only used in a switch to go to the correct case, which then did not rely on them for choosing the proper API call. This is no longer the case, because now I use api.Kind for deletion.
@k8s-bot pull-kubernetes-e2e-kops-aws test this |
…ontroller resources and pods.
7a401d1
to
5678bcf
Compare
/lgtm |
@k8s-bot pull-kubernetes-e2e-kops-aws test this |
Ref: #46847 |
@k8s-bot pull-kubernetes-e2e-kops-aws test this |
/approve no-issue |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: wasylkowski, wojtek-t Associated issue requirement bypassed by: wojtek-t The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
Adding milestone, since this is test fix. |
Automatic merge from submit-queue (batch tested with PRs 46235, 44786, 46833, 46756, 46669) |
This looks like the last commit that touched autoscaling utils, which is failing in the serial runs with:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/ci-kubernetes-e2e-gce-serial/1173 Is this a bug with how the test client is initialized? |
spawned #47127 |
As I mentioned in #47127, this PR is unrelated to the failure. Reverting it does not make the failure go away. |
What this PR does / why we need it: Without this fix CleanUp does not remove non-replication-controller resources and pods. This leads to pollution that in some cases inadvertently affects what is happening in AfterEachs before the namespace gets deleted.
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged): fixes #Special notes for your reviewer:
Release note: