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") -// }