Skip to content

Conversation

Fedosin
Copy link
Contributor

@Fedosin Fedosin commented Jun 22, 2023

What this PR does / why we need it:

Client proxy defines among which types we will search for objects we need to delete. Currently this list is not full and we skip some types, like ClusterRole or ClusterRole bindings. It leads to the fact that objects of these types stay in the system when their provider is deleted.

This PR updates the list of resource types we need to scan.

Note: for now, we will not delete CRDs and namespaces as it's the default behavior of clusterctl. But we still want to scan them because it will make it easier to manage their removal in the future: https://github.com/kubernetes-sigs/cluster-api-operator/blob/main/internal/controller/phases.go#L413-L417

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Client proxy defines among which types we will search for objects with
the desired labels. Currently this list is not full and we skip some
types, like ClusterRole or ClusterRole bindings. It leads to the fact
that objects of these types stay in the system when their provider is
deleted.

This PR updates the list of resource types we need to scan.
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jun 22, 2023
@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jun 22, 2023
@Fedosin Fedosin changed the title 🐛 delete all provider resources 🐛 Do not leave resources on the system after removing a provider Jun 22, 2023
Copy link
Contributor

@alexander-demicev alexander-demicev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alexander-demicev

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 26, 2023
Copy link
Member

@damdo damdo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 27, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 8354a3e9439012248072fa8949a83f04621c5dd1

@Fedosin
Copy link
Contributor Author

Fedosin commented Jun 27, 2023

/retest

@Fedosin
Copy link
Contributor Author

Fedosin commented Jun 27, 2023

docker pull docker.io/library/golang:1.19.0
Error response from daemon: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit
make: *** [Makefile:318: docker-pull-prerequisites] Error 1

>_<

@Fedosin
Copy link
Contributor Author

Fedosin commented Jun 27, 2023

/retest

1 similar comment
@Fedosin
Copy link
Contributor Author

Fedosin commented Jun 27, 2023

/retest

@k8s-ci-robot k8s-ci-robot merged commit 667606e into kubernetes-sigs:main Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants