Skip to content

Commit

Permalink
cleanup: change *kubeclient.Clientset to kubeclient.Interface in unre…
Browse files Browse the repository at this point in the history
…gister module

Signed-off-by: wulemao <1194736083@qq.com>
  • Loading branch information
wulemao committed Oct 29, 2024
1 parent 07c6cb4 commit e0017b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/karmadactl/unregister/unregister.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ type CommandUnregisterOption struct {
DryRun bool

// ControlPlaneClient control plane client set
ControlPlaneClient *karmadaclientset.Clientset
ControlPlaneClient karmadaclientset.Interface

// MemberClusterClient member cluster client set
MemberClusterClient *kubeclient.Clientset
MemberClusterClient kubeclient.Interface
}

// AddFlags adds flags to the specified FlagSet.
Expand Down
2 changes: 1 addition & 1 deletion pkg/karmadactl/util/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
)

// DeleteClusterObject deletes the cluster object from the Karmada control plane.
func DeleteClusterObject(controlPlaneKarmadaClient *karmadaclientset.Clientset, clusterName string,
func DeleteClusterObject(controlPlaneKarmadaClient karmadaclientset.Interface, clusterName string,
timeout time.Duration, dryRun bool) error {
if dryRun {
return nil
Expand Down

0 comments on commit e0017b6

Please sign in to comment.