Skip to content

Commit

Permalink
added returns
Browse files Browse the repository at this point in the history
Signed-off-by: Brad Wadsworth <brad.wadsworth@mavenwave.com>
  • Loading branch information
Brad Wadsworth committed Aug 8, 2023
1 parent 9bc4509 commit 5fc9240
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 5fc9240

Please sign in to comment.