Skip to content

Commit f6579c3

Browse files
Only check if klusterlet to determine the cluster importing status (#483)
Signed-off-by: zhujian <[email protected]> Co-authored-by: zhujian <[email protected]>
1 parent 959254d commit f6579c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controller/importstatus/importstatus_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func (r *ReconcileImportStatus) Reconcile(ctx context.Context, request reconcile
9999
}
100100

101101
available, err := helpers.IsManifestWorksAvailable(ctx, r.workClient, managedClusterName,
102-
fmt.Sprintf("%s-%s", managedClusterName, constants.KlusterletCRDsSuffix),
102+
// only check if the klusterlet is available, check the klusterlet-crd will break the no-operator mode
103103
fmt.Sprintf("%s-%s", managedClusterName, constants.KlusterletSuffix))
104104
if err != nil {
105105
reqLogger.V(5).Info("Check klusterlet manifestworks availability failed", "error", err)

0 commit comments

Comments
 (0)