Fix issue when refreshing service account token

This commit is contained in:
Jeremy Dartigalongue 2018-01-01 16:42:54 +00:00
parent 9213876f0b
commit b7b6e65285

View File

@ -129,7 +129,9 @@ class KubeConfigLoader(object):
self._config_persister = config_persister
def _refresh_credentials():
credentials, project_id = google.auth.default()
credentials, project_id = google.auth.default(
scopes=['https://www.googleapis.com/auth/cloud-platform']
)
request = google.auth.transport.requests.Request()
credentials.refresh(request)
return credentials