Skip to content

Commit 1bbb34a

Browse files
authored
Update tokengetter.go
1 parent aa4f6e9 commit 1bbb34a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/authentication/tokengetter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func (t *TokenGetter) getToken(ctx context.Context, key types.NamespacedName) (*
9292
req, err := t.client.ServiceAccounts(key.Namespace).CreateToken(ctx,
9393
key.Name,
9494
&authenticationv1.TokenRequest{
95-
Spec: authenticationv1.TokenRequestSpec{ExpirationSeconds: ptr.To[int64](int64(t.expirationDuration / time.Second))},
95+
Spec: authenticationv1.TokenRequestSpec{ExpirationSeconds: ptr.To(int64(t.expirationDuration / time.Second))},
9696
}, metav1.CreateOptions{})
9797
if err != nil {
9898
saErr := &SANotFoundError{key.Name}

0 commit comments

Comments
 (0)