Skip to content

Commit

Permalink
Ignore appliedmanifestwork crd not found error when checking managed …
Browse files Browse the repository at this point in the history
…cluster connectivity (open-cluster-management-io#594)

Signed-off-by: zhujian <jiazhu@redhat.com>
  • Loading branch information
zhujian7 authored and openshift-cherrypick-robot committed Sep 3, 2024
1 parent 3d6fb3a commit 4917cd8
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,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
Expand Down

0 comments on commit 4917cd8

Please sign in to comment.