We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa4f6e9 commit 1bbb34aCopy full SHA for 1bbb34a
internal/authentication/tokengetter.go
@@ -92,7 +92,7 @@ func (t *TokenGetter) getToken(ctx context.Context, key types.NamespacedName) (*
92
req, err := t.client.ServiceAccounts(key.Namespace).CreateToken(ctx,
93
key.Name,
94
&authenticationv1.TokenRequest{
95
- Spec: authenticationv1.TokenRequestSpec{ExpirationSeconds: ptr.To[int64](int64(t.expirationDuration / time.Second))},
+ Spec: authenticationv1.TokenRequestSpec{ExpirationSeconds: ptr.To(int64(t.expirationDuration / time.Second))},
96
}, metav1.CreateOptions{})
97
if err != nil {
98
saErr := &SANotFoundError{key.Name}
0 commit comments