cleanup: change *kubeclient.Clientset to kubeclient.Interface in unregister module
Signed-off-by: wulemao <1194736083@qq.com>
This commit is contained in:
parent
07c6cb4db9
commit
e0017b6ba4
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue