You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: internal/controller/kubeconfigs.go
+3-14Lines changed: 3 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,6 @@ package controller
2
2
3
3
import (
4
4
"context"
5
-
"errors"
6
5
"time"
7
6
8
7
corev1 "k8s.io/api/core/v1"
@@ -19,20 +18,9 @@ import (
19
18
const (
20
19
keyKubeconfig="kubeconfig"
21
20
keyExpiration="expiresAt"
22
-
23
-
kubeconfigExpiration=10*time.Minute
24
-
kubeconfigBuffer=3*requeueAfter
25
-
)
26
-
27
-
var (
28
-
errInvalidExpirationOrBuffer=errors.New("desired expiration and buffer are incompatible. make sure that desired expiration is greater than the buffer")
0 commit comments