Skip to content

Commit 2a67216

Browse files
committed
fix lint failure
1 parent 283f94a commit 2a67216

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

controllers/clustercache/cluster_accessor_client.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import (
2525

2626
"github.com/pkg/errors"
2727
corev1 "k8s.io/api/core/v1"
28-
v1 "k8s.io/api/core/v1"
2928
apierrors "k8s.io/apimachinery/pkg/api/errors"
3029
"k8s.io/apimachinery/pkg/api/meta"
3130
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
@@ -50,7 +49,7 @@ type createConnectionResult struct {
5049
Cache *stoppableCache
5150
}
5251

53-
func (ca *clusterAccessor) getKubeConfigSecret(ctx context.Context) (*v1.Secret, error) {
52+
func (ca *clusterAccessor) getKubeConfigSecret(ctx context.Context) (*corev1.Secret, error) {
5453
kubeconfigSecret, err := secret.Get(ctx, ca.config.SecretClient, ca.cluster, secret.Kubeconfig)
5554
if err != nil {
5655
return nil, errors.Wrapf(err, "error getting kubeconfig secret")

controllers/clustercache/cluster_cache.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,6 @@ func (cc *clusterCache) Reconcile(ctx context.Context, req reconcile.Request) (r
521521
log.Info("Kubeconfig was updated, disconnecting to re-connect with the new kubeconfig")
522522
accessor.Disconnect(ctx)
523523
didDisconnect = true
524-
connected = false
525524
}
526525
}
527526

0 commit comments

Comments
 (0)