Skip to content

Commit

Permalink
Merge pull request #2181 from metalice/CNV-47206-change-pvc-to-volume
Browse files Browse the repository at this point in the history
CNV-47206: Change PVC to volume
  • Loading branch information
openshift-merge-bot[bot] authored Sep 18, 2024
2 parents c3bb68e + c6299a8 commit 6c8f8d2
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 9 deletions.
8 changes: 6 additions & 2 deletions locales/en/plugin__kubevirt-plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"--- Select PVC name ---": "--- Select PVC name ---",
"--- Select PVC project ---": "--- Select PVC project ---",
"--- Select sysprep ---": "--- Select sysprep ---",
"--- Select Volume name ---": "--- Select Volume name ---",
"--- Select Volume project ---": "--- Select Volume project ---",
"--- Select VolumeSnapshot name ---": "--- Select VolumeSnapshot name ---",
"--- Select VolumeSnapshot project ---": "--- Select VolumeSnapshot project ---",
", {{prefferedQualifiedNodesSize}} matching preferred Nodes found": ", {{prefferedQualifiedNodesSize}} matching preferred Nodes found",
Expand Down Expand Up @@ -260,7 +262,7 @@
"Clone {{sourceKind}}": "Clone {{sourceKind}}",
"Clone a VirtualMachine": "Clone a VirtualMachine",
"Clone a volume available on the cluster and add it to the VirtualMachine. ": "Clone a volume available on the cluster and add it to the VirtualMachine. ",
"Clone existing PVC": "Clone existing PVC",
"Clone existing Volume": "Clone existing Volume",
"Clone in progress": "Clone in progress",
"Clone template": "Clone template",
"Clone volume": "Clone volume",
Expand Down Expand Up @@ -679,6 +681,7 @@
"Loading Templates with available boot source": "Loading Templates with available boot source",
"Local storage (LSO)": "Local storage (LSO)",
"Location of the existing PVC": "Location of the existing PVC",
"Location of the existing Volume": "Location of the existing Volume",
"Location of the existing VolumeSnapshot": "Location of the existing VolumeSnapshot",
"Log into <2>Hybrid Cloud Console</2> to track your Organization ID.": "Log into <2>Hybrid Cloud Console</2> to track your Organization ID.",
"M series": "M series",
Expand Down Expand Up @@ -1247,7 +1250,7 @@
"This VirtualMachine has": "This VirtualMachine has",
"This VirtualMachine is down. Please start it to access its console.": "This VirtualMachine is down. Please start it to access its console.",
"This VirtualMachine is subject to the Descheduler profiles configured for eviction.": "This VirtualMachine is subject to the Descheduler profiles configured for eviction.",
"This will create a cloned copy of the PVC in the destination project.": "This will create a cloned copy of the PVC in the destination project.",
"This will create a cloned copy of the Volume in the destination project.": "This will create a cloned copy of the Volume in the destination project.",
"Threads": "Threads",
"Time axis": "Time axis",
"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.",
Expand Down Expand Up @@ -1415,6 +1418,7 @@
"Volume mode": "Volume mode",
"Volume Mode": "Volume Mode",
"Volume name": "Volume name",
"Volume project": "Volume project",
"Volume snapshot": "Volume snapshot",
"Volume snapshot status": "Volume snapshot status",
"Volume Snapshot Status is a mechanism for reporting if a volume can be snapshotted or not.": "Volume Snapshot Status is a mechanism for reporting if a volume can be snapshotted or not.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,21 @@ const DiskSourcePVCSelectName: FC<DiskSourcePVCSelectNameProps> = ({
const fieldId = 'pvc-name-select';

return (
<FormGroup fieldId={fieldId} id={fieldId} isRequired label={t('PVC name')}>
<FormGroup fieldId={fieldId} id={fieldId} isRequired label={t('Volume name')}>
{pvcsLoaded ? (
<InlineFilterSelect
options={pvcNames?.map((name) => ({
children: name,
groupVersionKind: modelToGroupVersionKind(PersistentVolumeClaimModel),
value: name,
}))}
toggleProps={{
isDisabled,
isFullWidth: true,
placeholder: t('--- Select Volume name ---'),
}}
selected={pvcNameSelected}
setSelected={onChange}
toggleProps={{ isDisabled, isFullWidth: true, placeholder: t('--- Select PVC name ---') }}
/>
) : (
<Loading />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const DiskSourcePVCSelectNamespace: FC<DiskSourcePVCSelectNamespaceProps> = ({
fieldId={fieldId}
id={fieldId}
isRequired
label={t('PVC project')}
label={t('Volume project')}
>
{projectsLoaded ? (
<>
Expand All @@ -45,12 +45,12 @@ const DiskSourcePVCSelectNamespace: FC<DiskSourcePVCSelectNamespaceProps> = ({
toggleProps={{
isDisabled,
isFullWidth: true,
placeholder: t('--- Select PVC project ---'),
placeholder: t('--- Select Volume project ---'),
}}
selected={selectedProject}
setSelected={onChange}
/>
<FormGroupHelperText>{t('Location of the existing PVC')}</FormGroupHelperText>
<FormGroupHelperText>{t('Location of the existing Volume')}</FormGroupHelperText>
</>
) : (
<Loading />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,18 @@ const PVCSource: FC<PVCSourceProps> = ({ bootableVolume, setBootableVolumeField
/>
<Split hasGutter>
<SplitItem>
<Checkbox id="clone-pvc-checkbox" isChecked isDisabled label={t('Clone existing PVC')} />
<Checkbox
id="clone-pvc-checkbox"
isChecked
isDisabled
label={t('Clone existing Volume')}
/>
</SplitItem>
<SplitItem>
<HelpTextIcon
bodyContent={t('This will create a cloned copy of the PVC in the destination project.')}
bodyContent={t(
'This will create a cloned copy of the Volume in the destination project.',
)}
position={PopoverPosition.right}
/>
</SplitItem>
Expand Down

0 comments on commit 6c8f8d2

Please sign in to comment.