Merge pull request #1928 from chaunceyjiang/headless

When ServiceImportType is Headless, it should be ignored
This commit is contained in:
karmada-bot 2022-06-10 09:57:08 +08:00 committed by GitHub
commit d5275106fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ func (c *ServiceImportController) Reconcile(ctx context.Context, req controllerr
return controllerruntime.Result{Requeue: true}, err
}
if !svcImport.DeletionTimestamp.IsZero() {
if !svcImport.DeletionTimestamp.IsZero() || svcImport.Spec.Type != mcsv1alpha1.ClusterSetIP {
return controllerruntime.Result{}, nil
}