-
Notifications
You must be signed in to change notification settings - Fork 102
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
How to initialize NewClientFromKubeConf on Google Cloud's GKE #89
Comments
You haven't created a This is how I use it:
|
@zvonkok That did the trick, thank you 👍 Now I'm running into the next error that I don't know how to solve:
Is there any chance you have a solution for that as well? |
Add this to your imports:
|
Great, thank you very much! |
I think error handling messages could be slightly improved: Similar to how a readable error is thrown when KubeConfig is not passed, the same could be donw for Options. Or simply use a reasonable default instead of the current error that is hard to interpret. |
I am trying to create a Client using the NewClientFromKubeConf factory but keep getting errors.
If I try to simply pass an empty KubeConfClientOptions I get the following error:
Even though my kubeconfig is located under ~/.kube/config and $KUBECONFIG is set accordingly.
So instead I tried passing the KubeConfig parameter to KubeConfClientOptions:
kubeConfig properly contains the kubeconfig file as []byte, but I receive the following error anyway:
With a StackTrace that points to this line:
Am I misunderstanding something?
The text was updated successfully, but these errors were encountered: