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

Adding Service and Ingress RBAC rules to kubebuilder annotations #48

Merged
merged 1 commit into from
Dec 20, 2022

Conversation

kincl
Copy link
Contributor

@kincl kincl commented Dec 12, 2022

Just a minor fix to add RBAC rules. Let me know if I should make a changelog entry.

@vsoch
Copy link
Member

vsoch commented Dec 12, 2022

A CHANGELOG entry would be fantastic. Have you tested locally that everything works OK? And just to be sure - this ensures that the operator has control of kubernetes services and networking? If you can share - what did you try to do that didn't work without this added?

@vsoch
Copy link
Member

vsoch commented Dec 16, 2022

Ping @kincl in case you want to update your notes here - I'm just curious about the reasons for the rules (for my own interest)!

@kincl
Copy link
Contributor Author

kincl commented Dec 20, 2022

Sure thing @vsoch so we need these extra RBAC rules because the operator is requesting to watch Service[1] and Ingress[2] objects in the cluster because the MiniCluster then creates them[3]. It's possible if you are testing with minikube you may be using the default user that has admin privileges?

[1] https://github.com/flux-framework/flux-operator/blob/main/controllers/flux/minicluster_controller.go#L152
[2] https://github.com/flux-framework/flux-operator/blob/main/controllers/flux/minicluster_controller.go#L149
[3] https://github.com/flux-framework/flux-operator/blob/main/controllers/flux/service.go

@vsoch
Copy link
Member

vsoch commented Dec 20, 2022

@kincl indeed that is exactly what I am using! Thanks for adding these, let's merge in. And for an FYI we have some fairly robust changes coming soon in #49 - I have to figure out the start of a testing strategy first.

@vsoch vsoch merged commit 5bf0152 into flux-framework:main Dec 20, 2022
@kincl kincl deleted the fix-service-rbac branch December 20, 2022 19:45
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

2 participants