-
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
Skaffold dev fails when user cannot list deployments at cluster scope #2495
Comments
We should assume |
There are further cases that should be accounted for. For example:
EDIT: Maybe that's too many special cases. I just looked at |
We will turn the status check off by default #2499, that's going to downgrade this to I agree that there is a difference between leaving it empty - unconstrained vs setting it to |
Can somebody re-open this issue please? (I cannot) There is a very similar bug when retrieving the services for automatic port-forwarding. The error happens in services, err := clientset.CoreV1().Services("").List(metav1.ListOptions{
LabelSelector: label,
}) |
This breaks my RBAC. We have a namespace for each developer and we share skaffold.yaml within the git repo. Everybody suppose to work in his own namespace, but without access to the cluster-wide deployments. How can make it work just with current context namespace (like it did in previous version of skaffold)? |
reopening this until we can verify our fixes are working as intended. |
I verified this issue here on latest skaffold.
|
Heya - just a comment that @tejal29's example does not resolve this issue. The issue is running |
The deployment status check from Skaffold tries to list all deployments at cluster scope, when running Skaffold without the
--namespace
flag. For example:Fails with
On the other hand:
works as expected.
The reason for this is that
pkg/skaffold/deploy/status_check.go:80
doeswith
ns==""
(due to not specifying a namespace), and that means all namespaces.The text was updated successfully, but these errors were encountered: