Skip to content

Commit

Permalink
Merge pull request kubernetes-client#40 from jdartigalongue/master
Browse files Browse the repository at this point in the history
Fix issue when refreshing service account token
  • Loading branch information
mbohlool committed Jan 10, 2018
2 parents 3d0ee69 + b7b6e65 commit 13aa7cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/kube_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ def __init__(self, config_dict, active_context=None,
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
Expand Down

0 comments on commit 13aa7cd

Please sign in to comment.