From 8c3156974989b7c7aaf51ebf3de9db62e38be93d Mon Sep 17 00:00:00 2001 From: Feny Mehta Date: Wed, 18 Dec 2024 13:37:49 +0530 Subject: [PATCH] clean up Signed-off-by: Feny Mehta --- pkg/cmd/adm/register_member.go | 1 - pkg/cmd/adm/register_member_test.go | 9 --------- 2 files changed, 10 deletions(-) diff --git a/pkg/cmd/adm/register_member.go b/pkg/cmd/adm/register_member.go index 8b5a168..46a934b 100644 --- a/pkg/cmd/adm/register_member.go +++ b/pkg/cmd/adm/register_member.go @@ -45,7 +45,6 @@ type newClientFromRestConfigFunc func(*rest.Config) (runtimeclient.Client, error type extendedCommandContext struct { *clicontext.CommandContext NewClientFromRestConfig newClientFromRestConfigFunc - RestartFunc func(ctx *clicontext.CommandContext, clusterName string) (cfg configuration.ClusterConfig, kubeConfigFlag *genericclioptions.ConfigFlags, rccl runtimeclient.Client, err error) } func newExtendedCommandContext(term ioutils.Terminal, clientCtor newClientFromRestConfigFunc) *extendedCommandContext { diff --git a/pkg/cmd/adm/register_member_test.go b/pkg/cmd/adm/register_member_test.go index 5ed5b25..27c71ec 100644 --- a/pkg/cmd/adm/register_member_test.go +++ b/pkg/cmd/adm/register_member_test.go @@ -635,12 +635,3 @@ func defaultRegisterMemberArgs() registerMemberArgs { return args } - -// func (v *registerMemberValidated) mockRestartRegMem(ctx *clicontext.CommandContext, clusterName string) error { -// kf, _, err := v.getRegMemConfigFlagsAndClient(ctx, clusterName) - -// if kf != nil && err == nil { -// return nil -// } -// return fmt.Errorf("error in getting config flags") -// }