Skip to content

Commit

Permalink
Only check if klusterlet to determine the cluster importing status (#483
Browse files Browse the repository at this point in the history
)

Signed-off-by: zhujian <[email protected]>
Co-authored-by: zhujian <[email protected]>
  • Loading branch information
openshift-cherrypick-robot and zhujian7 authored Feb 11, 2025
1 parent 959254d commit f6579c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/importstatus/importstatus_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (r *ReconcileImportStatus) Reconcile(ctx context.Context, request reconcile
}

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

0 comments on commit f6579c3

Please sign in to comment.