Skip to content

Commit

Permalink
Correct behaviour for when multiple storage classes exist
Browse files Browse the repository at this point in the history
Signed-off-by: Maya Rashish <mrashish@redhat.com>
  • Loading branch information
maya-r committed Sep 10, 2020
1 parent 66fc02b commit fd76730
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/controller/config-controller.go
Expand Up @@ -251,9 +251,8 @@ func (r *CDIConfigReconciler) reconcileFilesystemOverhead(config *cdiv1.CDIConfi
if err := r.client.List(context.TODO(), storageClassList, &client.ListOptions{}); err != nil {
return err
}

config.Status.FilesystemOverhead.StorageClass = make(map[string]cdiv1.Percent)
for _, storageClass := range storageClassList.Items {
config.Status.FilesystemOverhead.StorageClass = make(map[string]cdiv1.Percent)
storageClassName := storageClass.GetName()
storageClassNameOverhead, found := perStorageConfig[storageClassName]

Expand Down

0 comments on commit fd76730

Please sign in to comment.