Fix issue when refreshing service account token
@@ -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
