Merge pull request #5594 from wulemao/karmadactl-unjoin
cleanup: change *kubeclient.Clientset to kubeclient.Interface in unregister module
This commit is contained in:
commit
6c6281f6a4
|
@ -128,10 +128,10 @@ type CommandUnregisterOption struct {
|
||||||
DryRun bool
|
DryRun bool
|
||||||
|
|
||||||
// ControlPlaneClient control plane client set
|
// ControlPlaneClient control plane client set
|
||||||
ControlPlaneClient *karmadaclientset.Clientset
|
ControlPlaneClient karmadaclientset.Interface
|
||||||
|
|
||||||
// MemberClusterClient member cluster client set
|
// MemberClusterClient member cluster client set
|
||||||
MemberClusterClient *kubeclient.Clientset
|
MemberClusterClient kubeclient.Interface
|
||||||
}
|
}
|
||||||
|
|
||||||
// AddFlags adds flags to the specified FlagSet.
|
// AddFlags adds flags to the specified FlagSet.
|
||||||
|
|
|
@ -30,7 +30,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
// DeleteClusterObject deletes the cluster object from the Karmada control plane.
|
// 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 {
|
timeout time.Duration, dryRun bool) error {
|
||||||
if dryRun {
|
if dryRun {
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue