From 359ba1a88a2e1b9c9bfd383fd6d71762ea47a7e9 Mon Sep 17 00:00:00 2001 From: Feny Mehta Date: Mon, 16 Dec 2024 17:44:19 +0530 Subject: [PATCH] e2e error fix Signed-off-by: Feny Mehta --- pkg/cmd/adm/register_member.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkg/cmd/adm/register_member.go b/pkg/cmd/adm/register_member.go index e6f7e56..41d9b7f 100644 --- a/pkg/cmd/adm/register_member.go +++ b/pkg/cmd/adm/register_member.go @@ -525,13 +525,8 @@ func (v *registerMemberValidated) getRegMemConfigFlagsAndClient(ctx *clicontext. kubeConfigFlags.AuthInfoName = nil // unused here, so we can hide it kubeConfigFlags.Context = nil // unused here, so we can hide it - cfg, err := configuration.LoadClusterConfig(ctx, clusterName) - if err != nil { - return nil, nil, err - } kubeConfigFlags.Namespace = &v.hostClusterData.namespace kubeConfigFlags.APIServer = &v.hostClusterData.apiEndpoint - kubeConfigFlags.BearerToken = &cfg.Token kubeConfigFlags.KubeConfig = &v.hostClusterData.kubeConfig return kubeConfigFlags, v.hostClusterData.client, nil