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

Add a warning message when one created collector needs extra RBAC permissions and the service account doesn't have them #3433

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

iblancasa
Copy link
Contributor

…missions and the service account doesn't have them

Signed-off-by: Israel Blancas <[email protected]>
Signed-off-by: Israel Blancas <[email protected]>
@iblancasa iblancasa marked this pull request as ready for review November 12, 2024 16:04
@iblancasa iblancasa requested a review from a team as a code owner November 12, 2024 16:04
@iblancasa iblancasa self-assigned this Nov 12, 2024
Copy link
Contributor

@swiatekm swiatekm left a comment

Choose a reason for hiding this comment

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

I'm not confident we aren't missing some edge cases here. This PR modifies some core components, but doesn't include any new tests. Maybe we can include some test using envtest to check that the webhook behaves the way we expect?

internal/manifests/collector/collector.go Outdated Show resolved Hide resolved
@iblancasa
Copy link
Contributor Author

I'm not confident we aren't missing some edge cases here. This PR modifies some core components, but doesn't include any new tests. Maybe we can include some test using envtest to check that the webhook behaves the way we expect?

I will check how to do that 👍🏻

Copy link
Contributor

@swiatekm swiatekm left a comment

Choose a reason for hiding this comment

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

LGTM

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.

Show a warning in the webhook if the SA for a collector has not the correct RBAC permissions
2 participants