mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-02-14 18:09:57 +00:00
Ignore appliedmanifestwork crd not found error when checking managed cluster connectivity (#594)
Signed-off-by: zhujian <jiazhu@redhat.com>
This commit is contained in:
@@ -220,6 +220,10 @@ func (n *klusterletCleanupController) checkConnectivity(ctx context.Context,
|
||||
if err == nil {
|
||||
return true, nil
|
||||
}
|
||||
if errors.IsNotFound(err) {
|
||||
klog.Infof("AppliedManifestWork not found, klusterlet %s", klusterlet.Name)
|
||||
return true, nil
|
||||
}
|
||||
|
||||
// if the managed cluster is destroyed, the returned err is TCP timeout or TCP no such host,
|
||||
// the k8s.io/apimachinery/pkg/api/errors.IsTimeout,IsServerTimeout can not match this error
|
||||
|
||||
Reference in New Issue
Block a user