Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
Signed-off-by: Feny Mehta <[email protected]>
  • Loading branch information
fbm3307 committed Dec 18, 2024
1 parent a56a109 commit 8c31569
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion pkg/cmd/adm/register_member.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
9 changes: 0 additions & 9 deletions pkg/cmd/adm/register_member_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
// }

0 comments on commit 8c31569

Please sign in to comment.