Skip to content

Commit

Permalink
added returns
Browse files Browse the repository at this point in the history
  • Loading branch information
Brad Wadsworth committed Aug 3, 2023
1 parent f693c5a commit 7e7c224
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/clients/gke/gke.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ func WrapRESTConfig(ctx context.Context, rc *rest.Config, credentials []byte, sc
rc.Wrap(func(rt http.RoundTripper) http.RoundTripper {
return &oauth2.Transport{Source: ts, Base: rt}
})
return nil
}
// if the credential not in a JSON format, treat the credential as an access token
t := oauth2.Token{
Expand All @@ -62,6 +63,7 @@ func WrapRESTConfig(ctx context.Context, rc *rest.Config, credentials []byte, sc
rc.Wrap(func(rt http.RoundTripper) http.RoundTripper {
return &oauth2.Transport{Source: ts, Base: rt}
})
return nil
}
var t *oauth2.Token
// DefaultTokenSource retrieves a token source from an injected identity.
Expand Down

0 comments on commit 7e7c224

Please # to comment.