-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
portForwarding requires access outside developer's namespace #2599
Comments
Thank you for filing this! |
Also related to #2502 |
Also see #2495 (comment) |
Depends in #2640 |
@priyawadhwa Thank you for the fix. I tried it on my mac and it works perfectly fine. This issue can be marked fixed. The only follow up question is - Do I have to explicitly specify --port-forward to skaffold, even if I have a portForward resource specified in skaffold.yaml ? |
Never mind - https://skaffold.dev/docs/how-tos/portforward/ clearly specifies - "Port forwarding is set to false by default; it is enabled with the --port-forward flag. If this flag is not set, no port forwarding will occur". Closing this issue. |
Expected behavior
Resource search for port-forwarding must be scoped to the namespace specified in PortForwardResource.
Actual behavior
Failed to port forward with k8s RBAC error - User does not have access to view resource at Cluster level.
Information
Steps to reproduce the behavior
Example Reference requiring Cluster level access for resource lookup - https://github.com/GoogleContainerTools/skaffold/blob/master/pkg/skaffold/kubernetes/portforward/resource_forwarder.go#L109
The text was updated successfully, but these errors were encountered: