Skip to content
This repository has been archived by the owner on Apr 28, 2020. It is now read-only.

Backport: Fix rendered disk size <1Gi #457

Merged

Conversation

mareklibra
Copy link
Contributor

Backport of #452

If disk size is < 1 Gi in the Storage Tab of CreateVmWizard,
the value is reformatted and appended by a lower matching unit.

Corresponding PVC is created with a value conforming the format
required by Kubernetes.
To be consistent with the newly introduced `rederValueConfig()`
Let's keep using "Gi" as the base unit.
In a later version, we will implement proper unit-selector.
@coveralls
Copy link

Pull Request Test Coverage Report for Build 1602

  • 31 of 37 (83.78%) changed or added relevant lines in 8 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.03%) to 82.678%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/components/Wizard/CreateVmWizard/StorageTab.js 5 7 71.43%
src/k8s/requests/v2v/importVmware.js 3 5 60.0%
src/utils/utils.js 1 3 33.33%
Files with Coverage Reduction New Missed Lines %
src/k8s/requests/v2v/startV2VvmwareController.js 1 13.33%
Totals Coverage Status
Change from base Build 1578: -0.03%
Covered Lines: 3832
Relevant Lines: 4432

💛 - Coveralls

@coveralls
Copy link

Pull Request Test Coverage Report for Build 1863

  • 31 of 37 (83.78%) changed or added relevant lines in 8 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.03%) to 82.678%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/components/Wizard/CreateVmWizard/StorageTab.js 5 7 71.43%
src/k8s/requests/v2v/importVmware.js 3 5 60.0%
src/utils/utils.js 1 3 33.33%
Files with Coverage Reduction New Missed Lines %
src/k8s/requests/v2v/startV2VvmwareController.js 1 13.33%
Totals Coverage Status
Change from base Build 1578: -0.03%
Covered Lines: 3832
Relevant Lines: 4432

💛 - Coveralls

@atiratree atiratree merged commit eb79496 into kubevirt:web-ui-v2.0.0 May 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants