Skip to content
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

don't use uniq by kind for prunable resources due to duplicate kinds … #825

Merged
merged 10 commits into from
May 13, 2021

Conversation

timothysmith0609
Copy link
Contributor

@timothysmith0609 timothysmith0609 commented May 11, 2021

If a cluster contains resources with identical kind but different group/version, the ClusterResourceDiscoverer will only find one of them, removing the other from the prune-whitelist. This is undesirable behaviour as it may cause (has caused!) deploys to fail to prune old resources.

Note: This fix will cause the log output for a pruned resource to be repeated twice if the resource exists in different API groups. E.g. in older k8s versions, Deployment could be found in the apps and extensions groups.

@timothysmith0609 timothysmith0609 requested a review from a team as a code owner May 11, 2021 19:34
@timothysmith0609 timothysmith0609 merged commit c3629a6 into master May 13, 2021
@timothysmith0609 timothysmith0609 deleted the multiple_kinds_affect_pruning branch May 13, 2021 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants