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