Skip to content

Commit

Permalink
MGMT-13431: patching bug - ODF storage class not recognizing all devi…
Browse files Browse the repository at this point in the history
…ce sets
  • Loading branch information
danmanor committed Jun 4, 2023
1 parent 628d8f2 commit 00b35d4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion internal/operators/odf/odf_operator.go
Expand Up @@ -141,8 +141,16 @@ func (o *operator) ValidateHost(_ context.Context, cluster *common.Cluster, host
}

// GenerateManifests generates manifests for the operator
// We recalculate the resources for all nodes because the computation that takes place during
// odf validations may be performed by a different replica
func (o *operator) GenerateManifests(cluster *common.Cluster) (map[string][]byte, []byte, error) {
o.log.Info("No. of ODF eligible disks are ", o.config.ODFDisksAvailable)
odfClusterResources := odfClusterResourcesInfo{}
_, err := o.computeResourcesAllNodes(&cluster.Cluster, &odfClusterResources)
if err != nil {
return nil, nil, err
}
o.config.ODFDisksAvailable = odfClusterResources.numberOfDisks
o.log.Info("No. of ODF eligible disks in cluster ", cluster.ID, " are ", o.config.ODFDisksAvailable)
return Manifests(o.config, cluster.OpenshiftVersion)
}

Expand Down

0 comments on commit 00b35d4

Please sign in to comment.