microsoft / mindaro

Bridge to Kubernetes - for Visual Studio and Visual Studio Code
MIT License
307 stars 106 forks source link

Always querying 'default' namespace #73

Closed morganlaneap closed 3 years ago

morganlaneap commented 4 years ago

Hi there, I am trying to use B2K with a cluster where RBAC is in place and I do not have access to the default namespace. I have configured vscode to use the namespace I want, in this case, namespace-a, and my service I am interested in is also in namespace-a. It appears from the logs that it is still querying the service list in default.

2020-11-03T19:45:17.6054269Z | Library | ERROR | Logging handled exception: Microsoft.Rest.HttpOperationException: {"Request":{"Method":{"Method":"GET"},"RequestUri":"https://my-cluster.azmk8s.io/api/v1/namespaces/default/services","Properties":{},"Content":null,"Headers":{"Authorization":["auth-code"]}},"Response":{"StatusCode":403,"ReasonPhrase":"Forbidden","Content":"{\"kind\":\"Status\",\"apiVersion\":\"v1\",\"metadata\":{},\"status\":\"Failure\",\"message\":\"services is forbidden:

Is this expected behaviour?

pragyamehta commented 4 years ago

Hi @morganlaneap Thanks for reporting this issue. We have fixed this issue in our codebase and will be rolling it out soon (in the coming weeks). I will update you once it has been released. Thanks!

greenie-msft commented 3 years ago

Closing this thread as we have released a fix for this issue. Please feel free to comment if you're still experiencing this behavior.