-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Problem with load_kube_config() #1335
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
Fixed the bug from kubernetes-client/python#1335 - added exception to JWT validation - added a rule to fix the url unsafe characters - changed base64.b64decode to base64.urlsafe_b64decode for correct oidc token encoding
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
I have this problem too. File from kubernetes-client/python-base#220 solved this problem, but it hasn't merged yet. |
Rotten issues close after 30d of inactivity. Send feedback to sig-contributor-experience at kubernetes/community. |
@k8s-triage-robot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@JiffsMaverick: You can't reopen an issue/PR unless you authored it or you are a collaborator. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
This problem is still relevant. PR kubernetes-client/python-base#220 can solve this problem. Please, reopen. |
I'm also having this issue - any merge for the PR yet? |
Uh oh!
There was an error while loading. Please reload this page.
Hi, everyone!
I have a very strange problem with using my kubeconf.
When I try to execute the example code from README, but at the stage
config.load_kube_config()
an error appears:I changed one line in source a little bit:
FROM
https://github.com/kubernetes-client/python-base/blob/2da2b981ca806b25487ad92d01a2164815c18517/config/kube_config.py#L391
TO
base64.b64decode(parts[1].replace('-', '+') + padding).decode('utf-8')
And there were no more errors. Why? I can fix it in my configuration file, but it will break down here:
https://github.com/kubernetes-client/python-base/blob/2da2b981ca806b25487ad92d01a2164815c18517/config/kube_config.py#L374
You can see this problem in the following example:
The text was updated successfully, but these errors were encountered: