Skip to content

Commit

Permalink
Use full path for token file
Browse files Browse the repository at this point in the history
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de>
  • Loading branch information
mikkeloscar committed Sep 20, 2022
1 parent 5efc460 commit 02463d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kubernetes/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func (c *simpleClient) createRequest(method, resource string, body io.Reader) (*
req.Header.Set("User-Agent", c.cfg.UserAgent)
}
if c.cfg.TokenProvider != nil {
token, ok := c.cfg.TokenProvider.GetSecret(serviceAccountTokenKey)
token, ok := c.cfg.TokenProvider.GetSecret(serviceAccountDir + serviceAccountTokenKey)
if !ok {
return nil, fmt.Errorf("secret not found: %v", serviceAccountTokenKey)
}
Expand Down

0 comments on commit 02463d8

Please sign in to comment.