Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Commit

Permalink
Merge d612864 into a4616b0
Browse files Browse the repository at this point in the history
  • Loading branch information
imduffy15 committed Jun 5, 2019
2 parents a4616b0 + d612864 commit 5ee9f28
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pykube/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ def _persist_credentials(self, config, token, expiry):
def _auth_gcp(self, request, token, expiry, config):
original_request = request.copy()

credentials = google.auth.default()[0]
credentials = google.auth.default(
scopes=['https://www.googleapis.com/auth/cloud-platform', 'https://www.googleapis.com/auth/userinfo.email']
)[0]
credentials.token = token
credentials.expiry = expiry

Expand Down Expand Up @@ -94,7 +96,7 @@ def send(self, request, **kwargs):
jsonpath_installed,
]
if not all(dependencies):
raise ImportError("missing dependencies for GCP support (try pip install pykube[gcp]")
raise ImportError("missing dependencies for GCP support (try pip install pykube_ng[gcp]")
auth_config = auth_provider.get("config", {})
if "cmd-path" in auth_config:
output = subprocess.check_output(
Expand Down

0 comments on commit 5ee9f28

Please sign in to comment.