Skip to content

Commit

Permalink
make sure mco reconciles when resources for hub metrics collection ar…
Browse files Browse the repository at this point in the history
…e missing
  • Loading branch information
coleenquadros committed Feb 16, 2024
1 parent 48cda69 commit 4bcfb78
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -443,14 +443,16 @@ func createManifestWorks(
manifests = injectIntoWork(manifests, hubInfo)

work.Spec.Workload.Manifests = manifests
err = createManifestwork(c, work)
if err != nil {
return err
}

if clusterName != clusterNamespace {
// ACM 8509: Special case for hub/local cluster metrics collection
// install the endpoint operator into open-cluster-management-observability namespace for the hub cluster
log.Info("Creating resource for hub metrics collection", "cluster", clusterName)
err = createUpdateResourcesForHubMetricsCollection(c, manifests)
} else {
err = createManifestwork(c, work)
}

return err
Expand Down

0 comments on commit 4bcfb78

Please sign in to comment.