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) (open-cluster-management-io#116)

Signed-off-by: zhujian <jiazhu@redhat.com>
  • Loading branch information
zhujian7 authored Sep 3, 2024
1 parent 0c5e6e5 commit 009cf70
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 009cf70

Please sign in to comment.