Skip to content
This repository was archived by the owner on Mar 13, 2022. It is now read-only.

Commit 13aa7cd

Browse files
authored
Merge pull request #40 from jdartigalongue/master
Fix issue when refreshing service account token
2 parents 3d0ee69 + b7b6e65 commit 13aa7cd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

config/kube_config.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ def __init__(self, config_dict, active_context=None,
129129
self._config_persister = config_persister
130130

131131
def _refresh_credentials():
132-
credentials, project_id = google.auth.default()
132+
credentials, project_id = google.auth.default(
133+
scopes=['https://www.googleapis.com/auth/cloud-platform']
134+
)
133135
request = google.auth.transport.requests.Request()
134136
credentials.refresh(request)
135137
return credentials

0 commit comments

Comments
 (0)