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

fix: show warning when cleaning up old resources without delete permissions #1056

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

TheSpiritXIII
Copy link
Member

@TheSpiritXIII TheSpiritXIII commented Jul 8, 2024

Using the cleanup flag today causes the operator to crash-looping because we don't include the DELETE RBAC permission by default.

This happened because we used to do all resource creation/update/deletion on the operator but we moved it to YAML. This also makes the cleanup function consistent, as we warn when we can't delete everything else.

Copy link
Collaborator

@pintohutch pintohutch left a comment

Choose a reason for hiding this comment

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

LGTM % Adam's question.

Also, is this an urgent issue? What's preventing us from hitting this on GKE today or catching it in E2E tests, for example?

Can you elaborate in the PR description?

@TheSpiritXIII TheSpiritXIII merged commit dce1957 into main Aug 2, 2024
27 checks passed
@TheSpiritXIII TheSpiritXIII deleted the TheSpiritXIII/delete-warning branch August 2, 2024 16:27
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