Skip to content

Commit

Permalink
Only detect if the placementDecsion API is ready on the hub cluster (#94
Browse files Browse the repository at this point in the history
)

Signed-off-by: Xiangjing Li <xiangli@redhat.com>
  • Loading branch information
xiangjingli committed Feb 28, 2022
1 parent 6ee7503 commit b8aaf45
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmd/manager/exec/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,11 @@ func RunManager() {

sig := signals.SetupSignalHandler()

klog.Info("Detecting ACM Placement Decision API...")
utils.DetectPlacementDecision(sig, mgr.GetAPIReader())
// Only detect if the placementDecsion API is ready on the hub cluster
if !Options.Standalone && Options.ClusterName == "" {
klog.Info("Detecting ACM Placement Decision API on the hub...")
utils.DetectPlacementDecision(sig, mgr.GetAPIReader())
}

klog.Info("Starting the Cmd.")

Expand Down

0 comments on commit b8aaf45

Please sign in to comment.