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 RBAC generation issues #172

Merged
merged 6 commits into from
Dec 22, 2021
Merged

Fix RBAC generation issues #172

merged 6 commits into from
Dec 22, 2021

Conversation

metacosm
Copy link
Member

@metacosm metacosm commented Dec 17, 2021

Fixes #154 and operator-framework/java-operator-sdk#699.
Ping @lburgazzoli @poikilotherm: would be great if you could give this PR a try and let me know if this addresses your issues. If yes, I'll cut a release.

This is needed because RBAC generation needs to make decisions based on
which namespaces the controllers are configured to watch.
The property was removed from BuildTimeControllerConfiguration because
it present on a `@ConfigRoot` would trigger the expansion of variables.
This new implementation sidesteps this issue and currently generates
the RBAC with the variable name e.g. `${foo}`.
Also take `quarkus.kubernetes.namespace` property into account.
@metacosm metacosm added bug Something isn't working enhancement New feature or request labels Dec 17, 2021
@metacosm metacosm self-assigned this Dec 17, 2021
@lburgazzoli
Copy link

is this for v1.x or v2.x ?

@metacosm
Copy link
Member Author

v2.x (quarkus extension, so targeting josdk 1.10.1)

@metacosm metacosm merged commit 5119c1f into main Dec 22, 2021
@metacosm metacosm deleted the fix-rbac branch December 22, 2021 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Misleading warning about ClusterRoleBinding
2 participants