Skip to content

Commit

Permalink
updating comment on line no 76
Browse files Browse the repository at this point in the history
  • Loading branch information
akagami-harsh committed Oct 18, 2023
1 parent bcd8fa2 commit 9aa46e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/auth/token_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (c *OIDCTokenProvider) GetJWT(serviceAccount types.NamespacedName, audience
return "", fmt.Errorf("could not request a token for %s: %w", serviceAccount, err)
}

// we need a duration until this token expires, use the expiry time - (now + 30s)
// we need a duration until this token expires, use the expiry time - (now + 5min)
// this gives us a buffer so that it doesn't expire between when we retrieve it and when we use it
expiryTtl := tokenRequestResponse.Status.ExpirationTimestamp.Time.Sub(time.Now().Add(expirationBufferTime))

Expand Down

0 comments on commit 9aa46e2

Please sign in to comment.