Wizard: Gate kernel info behind feature flag

This gates the visibility of kernel information behind a flag on the OpenSCAP step.
This commit is contained in:
regexowl 2025-02-07 15:12:43 +01:00 committed by Michal Gold
parent 87a908af35
commit ac725f3ae1

View file

@ -38,6 +38,7 @@ export const OscapProfileInformation = ({
const compliancePolicyID = useAppSelector(selectCompliancePolicyID);
const complianceProfileID = useAppSelector(selectComplianceProfileID);
const isKernelEnabled = useFlag('image-builder.kernel.enabled');
const isServicesStepEnabled = useFlag('image-builder.services.enabled');
const {
@ -133,6 +134,23 @@ export const OscapProfileInformation = ({
>
{oscapProfile?.profile_id}
</TextListItem>
{!isKernelEnabled && (
<>
<TextListItem
component={TextListItemVariants.dt}
className="pf-v5-u-min-width"
>
Kernel arguments:
</TextListItem>
<TextListItem component={TextListItemVariants.dd}>
<CodeBlock>
<CodeBlockCode>
{oscapProfileInfo?.kernel?.append}
</CodeBlockCode>
</CodeBlock>
</TextListItem>
</>
)}
{!isServicesStepEnabled && (
<>
<TextListItem