-
Notifications
You must be signed in to change notification settings - Fork 23
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
limit-namespaces for namespace-scope deployments #148
base: main
Are you sure you want to change the base?
Conversation
Implement the limit-namespace argument for the manager, this enables the manager to run in a namespace-scoped configuration. This allows users in constrained openshift environments, such as those running multi-tenant clusters, a more convenient deployment method, without running into permission issues, and eventual crashlooping due to inadequate RBAC. By default the implementation will retain cluster-wide configuration. If the --limit-namespaces argument is passed with a list of comma delimited namespaces, the manager will be configured to only list and watch resources within the provided namespaces.
Thanks for your pull request. Before we can look at it, you'll need to add a 'DCO signoff' to your commits. 📝 Please follow instructions in the contributing guide to update your commits with the DCO Full details of the Developer Certificate of Origin can be found at developercertificate.org. The list of commits missing DCO signoff:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @hubeadmin. Thanks for your PR. I'm waiting for a cert-manager member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Points to a 404 |
Out of curiosity, I assume there is a reason why cert-manager and openshift-routes are not just deployed into their own dedicated namespaces outside of the tenants control, much like the openshift-* namespaces? Does that mean each tenant has their own deployment of cert-manager and openshift-routes, confined to their namespace(s)? |
Exactly, as tenants we don't have access to |
Implement the limit-namespace argument for the manager, this enables the manager to run in a namespace-scoped configuration.
This allows users in constrained OpenShift environments, such as those running multi-tenant clusters, a more convenient deployment method, without running into permission issues, and eventual crash looping due to inadequate RBAC.
By default, the implementation will retain cluster-wide configuration. If the --limit-namespaces argument is passed with a list of comma-delimited namespaces, the manager will be configured to only list and watch resources within the provided namespaces.
Not sure if this is really useful for anyone else, but it is a change I had to implement for one of our internal deployments to work.
Without getting into too much detail, we have an internal cluster that serves a pretty large number of tenants. No tenant is allowed access to cluster-wide resources, and their permissions are scoped to only the namespaces owned by that tenant. This meant that we weren't able to user the openshift-routes cert manager as-is, as it was trying to request resources outside our tenant's scope, and as we weren't able to add the RBAC to make this work out of the box, we had to make this change.