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 committed Aug 19, 2024
1 parent 75394a3 commit 09db234
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,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 09db234

Please sign in to comment.