);
};
export const TargetEnvOtherList = () => {
return (
<>
Image type
Built image will be available for download
>
);
};
export const FSCList = () => {
const { getState } = useFormApi();
const isManual =
getState()?.values?.['file-system-config-radio'] === 'manual';
const partitions = getState()?.values?.['file-system-configuration'];
return (
Configuration type
{isManual ? 'Manual' : 'Automatic'}
{isManual && (
<>
{' '}
}
>
>
)}
{isManual && (
<>
Image size (minimum)
Image Builder may extend this size based on requirements,
selected packages, and configurations.
}
>
>
)}
);
};
export const MinSize = ({ isManual, partitions }) => {
let minSize = '';
if (isManual && partitions) {
let size = 0;
for (const partition of partitions) {
size += partition.size * partition.unit;
}
size = (size / UNIT_GIB).toFixed(1);
if (size < 1) {
minSize = `Less than 1 GiB`;
} else {
minSize = `${size} GiB`;
}
}
return (
{minSize}
);
};
MinSize.propTypes = {
isManual: PropTypes.bool,
partitions: PropTypes.arrayOf(PropTypes.object),
};
export const ContentList = () => {
const { getState } = useFormApi();
return (
Additional Red Hat
and 3rd party packages
{getState()?.values?.['selected-packages']?.length > 0 ? (
}
>
) : (
0
)}
Custom repositories
{getState()?.values?.['payload-repositories']?.length > 0 ? (
}
>
) : (
0
)}
);
};
export const RegisterLaterList = () => {
return (
Registration type
Register the system later
);
};
export const RegisterNowList = () => {
const { getState } = useFormApi();
const activationKey = getState()?.values?.['subscription-activation-key'];
const { isError } = useShowActivationKeyQuery(
{ name: activationKey },
{
skip: !activationKey,
}
);
return (
<>
Registration type
{getState()?.values?.['register-system']?.startsWith(
'register-now'
) && (
Register with Red Hat Subscription Manager (RHSM)
)}
{(getState()?.values?.['register-system'] ===
'register-now-insights' ||
getState()?.values?.['register-system'] ===
'register-now-rhc') && (
Connect to Red Hat Insights
)}
{getState()?.values?.['register-system'] ===
'register-now-rhc' && (
Use remote host configuration (rhc) utility
)}
Activation key
Activation keys enable you to register a system with
appropriate subscriptions, system purpose, and repositories
attached.
If using an activation key with command line registration,
you must provide your organization's ID. Your
organization's ID is{' '}
{getState()?.values?.['subscription-organization-id'] !==
undefined ? (
getState()?.values?.['subscription-organization-id']
) : (
)}
}
>
{isError && (
Information about the activation key cannot be loaded. Please check
the key was not removed and try again later.
)}
>
);
};
export const ImageDetailsList = () => {
const { getState } = useFormApi();
const imageName = getState()?.values?.['image-name'];
const imageDescription = getState()?.values?.['image-description'];
return (
{imageName && (
<>
Image name
{imageName}
>
)}
{imageDescription && (
<>
Description
{imageDescription}
>
)}
);
};