When ServiceImportType is Headless, it should be ignored

Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
This commit is contained in:
chaunceyjiang 2022-05-31 15:37:24 +08:00
parent d7ad34afa6
commit 17a44ae041
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 return controllerruntime.Result{Requeue: true}, err
} }
if !svcImport.DeletionTimestamp.IsZero() { if !svcImport.DeletionTimestamp.IsZero() || svcImport.Spec.Type != mcsv1alpha1.ClusterSetIP {
return controllerruntime.Result{}, nil return controllerruntime.Result{}, nil
} }