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(#3390): Fix Knative addressable resolver cluster role binding #3400

Merged

Conversation

christophd
Copy link
Contributor

@christophd christophd commented Jun 27, 2022

Use proper operator namespace in the service account role binding subject for global operators. Was using empty global operator watch namespace which caused errors in the cluster role binding.

Fixes #3390
Fixes #3328

Closes #3391

Release Note

Fix(Knative): Cluster role binding for Knative addressable resolver. Bring back permissions for messaging.knative.dev resources (e.g. channel)

@christophd christophd force-pushed the issue/3390/rbac-addressable-resolver branch from e012690 to 191867a Compare June 28, 2022 07:01
@christophd
Copy link
Contributor Author

@astefanutti could you please have another look. I am now only using the operatorNamespace passing in the globalOperator boolean flag to see if we need to set as cluster role or normal role binding. This way we avoid having two namespaces (WATCH_NAMESPACE and operatorNamespace) in the funcs and it will be less confusing

pkg/install/knative.go Outdated Show resolved Hide resolved
…ng in global operator mode

Use proper operator namespace in the service account role binding subject for global operators. Was using empty global operator watch namespace before which caused errors in the cluster role binding.
@christophd christophd force-pushed the issue/3390/rbac-addressable-resolver branch from 191867a to 274f712 Compare June 30, 2022 08:31
Copy link
Member

@astefanutti astefanutti left a comment

Choose a reason for hiding this comment

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

LGTM!

@oscerd oscerd merged commit 2ffdcfa into apache:main Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants