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 1, 2023
1 parent 9e2b061 commit 1524635
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion internal/operators/odf/odf_operator.go
Expand Up @@ -142,7 +142,13 @@ func (o *operator) ValidateHost(_ context.Context, cluster *common.Cluster, host

// GenerateManifests generates manifests for the operator
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 1524635

Please sign in to comment.