core: update loadclusterInfo with multus check

if Multus is enabled the clusterinfo should be updated with
network as multus as to run the ceph cmds in remote
executor

Signed-off-by: parth-gr <paarora@redhat.com>
This commit is contained in:
parth-gr committed 2022-09-22 14:46:51 +05:30
1 parent ddea97ebde
commit 26584fc6e5
26 files changed
+48 -39

No files matched your search

+1 -1
View File
@@ -233,7 +233,7 @@ func (r *ReconcileCephObjectStore) reconcile(request reconcile.Request) (reconci
}
// Populate clusterInfo during each reconcile
r.clusterInfo, _, _, err = opcontroller.LoadClusterInfo(r.context, r.opManagerContext, request.NamespacedName.Namespace)
r.clusterInfo, _, _, err = opcontroller.LoadClusterInfo(r.context, r.opManagerContext, request.NamespacedName.Namespace, r.clusterSpec)
if err != nil {
return reconcile.Result{}, *cephObjectStore, errors.Wrap(err, "failed to populate cluster info")
}