Skip to content

Conversation

@jordiprats
Copy link
Contributor

This PR fixes: #309

This takes into consideration the roles that are used to generate other roles so that they are not marked as unused as per aggregated-clusterroles

@jordiprats
Copy link
Contributor Author

@derailed is there anything you want me to change or clarify?

Copy link
Owner

@derailed derailed left a comment

Choose a reason for hiding this comment

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

@jordiprats Great catch! Thank you for these updates!!
Please see review comments

if s.system.skip(fqn) {
continue
}
partialRole := false
Copy link
Owner

Choose a reason for hiding this comment

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

nit: prefer using the zero value aka var partialRole bool

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure, same functionality. I can change that

Copy link
Owner

@derailed derailed left a comment

Choose a reason for hiding this comment

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

@jordiprats Thank you for the updates! I think we should support matchExp.
We can add in a subsequent PR

@derailed derailed merged commit c7148a7 into derailed:master Sep 14, 2024
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.

Parts of aggregated ClusterRoles are being highlighted as unused

2 participants