Merge pull request #5594 from wulemao/karmadactl-unjoin

cleanup: change *kubeclient.Clientset to kubeclient.Interface in unregister module
This commit is contained in:
karmada-bot 2024-10-29 17:32:39 +08:00 committed by GitHub
commit 6c6281f6a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -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.

View File

@ -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