Merge pull request #1912 from ramvikrams/%1

decoding a not safe url in load_kube_config
This commit is contained in:
Kubernetes Prow Robot 2022-10-13 15:21:01 -07:00 committed by GitHub
commit e36a91be6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -398,7 +398,7 @@ class KubeConfigLoader(object):
if PY3:
jwt_attributes = json.loads(
base64.b64decode(parts[1] + padding).decode('utf-8')
base64.urlsafe_b64decode(parts[1] + padding).decode('utf-8')
)
else:
jwt_attributes = json.loads(