From 1090e613c549d8c485e348ffc2b2605c925401c9 Mon Sep 17 00:00:00 2001 From: Craig O'Donnell Date: Mon, 20 Nov 2023 21:35:58 +0000 Subject: [PATCH] remove unecessary clientset instantiation --- pkg/snapshot/velero.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkg/snapshot/velero.go b/pkg/snapshot/velero.go index 1f0e852952..b92f3bf625 100644 --- a/pkg/snapshot/velero.go +++ b/pkg/snapshot/velero.go @@ -249,11 +249,6 @@ func DetectVeleroNamespace(ctx context.Context, clientset kubernetes.Interface, veleroNamespace = TryGetVeleroNamespaceFromConfigMap(ctx, clientset, kotsadmNamespace) } - clientset, err := k8sutil.GetClientset() - if err != nil { - return "", errors.Wrap(err, "failed to get k8s clientset") - } - deployments, err := clientset.AppsV1().Deployments(veleroNamespace).List(ctx, metav1.ListOptions{}) if kuberneteserrors.IsNotFound(err) { return "", nil