-
Notifications
You must be signed in to change notification settings - Fork 3k
segmentation violation code when I run it for minikube (works fine for real kubernetes clusters) #197
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
Comments
I'm experiencing the same issue with Pods("").List()
I'm using a config for remote cluster. The problem occurs only for List(at least this what I've found). Getting a certain Pod info works fine. |
Getting this with secrets as well. Go 1.8.
client.CoreV1().Secrets(namespace).List(v1Meta.ListOptions{LabelSelector: selector.String()}) |
@owenhaynes your panic looks like golang/go#20501 @iordaniordanov and @medyagh please including the full stack trace of the program when it panics and the version of transitive dependencies (e.g. what version is golang.org/x/net?). Just posting the top level error isn't enough. All nil pointer panic look the same and the stack trace is the actually actionable thing. |
@ericchiang cheers for that reverting x/net worked. Never thought to look at x/net |
@ericchiang, sry for that. Will compare my trace with golang/go#20501 and will provide an update tomorrow |
@ericchiang, my trace is like the one mentioned in golang/go#20501 |
Sorry, but how should I fix the issue for myself? I've noticed the new code linked there, but I cannot find this file(pipe.go). I checked in the $GOROOT/src/vendor/golang_org/x/net/http2/ but there is no pipe.go file there |
@iordaniordanov you need to update your vendored copy of golang.org/x/net/http2. Please see the instructions in INSTALL.md https://github.com/kubernetes/client-go/blob/master/INSTALL.md Particularly the glide instructions tell you how to pin to a vendored version that client-go doesn't request, though by the look of it, no tagged versions of client-go actually request the broken golang.org/x/net/http versions. |
Thanks for the solution! I'm closing the issue. |
Uh oh!
There was an error while loading. Please reload this page.
When I run this code for a real kubernetes cluster it works fine, but when I run it for minkube context I get this error:
To make sure it is not related to kuberentes version, I made my minikube to start with same version as my kuberentes (1.5.1)
here are my kubectl version
Here is part of the code that throws error:
and here is how I can get my kubeconfig and clientset
another information that might be useful, I run my code in a docker container and I mount the .kube/config to the container (which works for real clusters but not for minikube)
The text was updated successfully, but these errors were encountered: