Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch was originally introduced in PR #5684. Original name: "clusterctl discovery should ignore provider's resources" Original commit id: db5b183 Original description: While managing components (for cert-manager or providers) clusterctl implements a discovery function to seek for all the objects part of the component. This commit makes this code to ignore resources for a provider (e.g Cluster for CAPI, AWSCluster for CAPA, Certificates for cert-manager) given that those resources are not part of the component itself. This will make operations like upgrade plan or apply and delete resilient to actual state of cert-manager web hooks; in fact, those operations can now work when web-hooks are not functioning (due to provider's deployment already deleted, to provider scaled down to 0, to other errors) Reason for backporting: This issue that was solved in db5b183 on the main branch is also effecting older releases of CAPI currently in use thus the patch is applicable on older branches.
- Loading branch information