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
Support for "hns get pods -n my-hierarchical-ns"? #235
Comments
Hey @absoludity ! I'd love to be able to limit visibility to the namespaces you have access to, but base K8s doesn't support that and it'd be challenging for HNC to work around that. If we ever had to, I was planning on using something roughly similar to what you're describing, I think OpenShift has a similar approach too. Sadly, since HNC is just a layer on top of vanilla K8s, there's only so much we can do to modify the behaviour of built-in verbs like LIST. So we definitely could build something like this to move everything server-side, probably as an API extension rather than a controller. I'm not going to work on that myself, but I could help you with design, scoping, and reviews if you wanted to work on it. Sorry this isn't the best answer, I'm totally not objecting to this feature, it just takes more time than I have right now! |
Thanks @adrianludwin, yes, I was just more wondering if it was something planned for the future. Unfortunately it's not something I'd be able to take time to do right now either. Cheers. |
Understood, thanks!
…On Sun, Nov 13, 2022 at 7:58 PM Michael Nelson ***@***.***> wrote:
Thanks @adrianludwin <https://github.com/adrianludwin>, yes, I was just
more wondering if it was something planned for the future. Unfortunately
it's not something I'd be able to take time to do right now either. Cheers.
—
Reply to this email directly, view it on GitHub
<#235 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE43PZBA4DXZ7XDQATBXS5LWIGFDPANCNFSM6AAAAAARUSOE5U>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
We discussed this at the February 21 meeting, I drafted a proposal to address this here https://docs.google.com/document/d/1WpnAJ3442v93G4Wi7SnoEiLZVLJJO-AWCkl5GO4YLl4/edit?usp=sharing |
/assign |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale This is under development #281 |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
/remove-lifecycle rotten |
Hi there. I was excited to find hns today as a potential solution for some multi-tenancy queries users have which cannot be easily solved with vanilla k8s. There are two related requests that pop up in different scenarios for our application (Kubeapps):
kubectl hns get pods -n my-hierarchical-ns
I can see ways that I could use hns to potentially answer the first point above, though I also note that the result may be slow for the same reason. It seems that currently this is answered client-side (by querying for the anchors in a namespace, then for those namespaces, recursively?).
So my questions are:
kubectl hns get pods -n myhierarchical-ns
) on the server-side, rather than recursively visiting all namespaces and callingget pods
etc. (assuming a user without read permission on the entire cluster).I'm not certain, but it looks like doing so could not only solve the slow responses for
hns tree
but also allow users in a multi-tenant environment to see all their resources (similar tokubectl get pods -A
but for a hierarchy rather than the whole cluster), which I imagine would be very useful to others as well?Thanks for any thoughts (and for the great work on hns - I was very excited to find it... been a missing piece in k8s for a long time that Rancher and openshift have tried to fill in the past, imo).
The text was updated successfully, but these errors were encountered: