Skip to content

Commit 6234adc

Browse files
remove obsolete error
1 parent 5ce9df8 commit 6234adc

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

internal/controller/kubeconfigs.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package controller
22

33
import (
44
"context"
5-
"errors"
65
"time"
76

87
corev1 "k8s.io/api/core/v1"
@@ -21,10 +20,6 @@ const (
2120
keyExpiration = "expiresAt"
2221
)
2322

24-
var (
25-
errInvalidExpirationOrBuffer = errors.New("desired expiration and buffer are incompatible. make sure that desired expiration is greater than the buffer")
26-
)
27-
2823
func (r *ControlPlaneReconciler) ensureKubeconfig(ctx context.Context, remoteCfg *rest.Config, namespace string, secretName string, svcaccountRef corev1beta1.ServiceAccountReference) (*corev1.SecretReference, error) {
2924
secret := &corev1.Secret{
3025
ObjectMeta: metav1.ObjectMeta{

0 commit comments

Comments
 (0)