From ac725f3ae147ab8fd0cecfe81f1a1010c34b595d Mon Sep 17 00:00:00 2001 From: regexowl Date: Fri, 7 Feb 2025 15:12:43 +0100 Subject: [PATCH] Wizard: Gate kernel info behind feature flag This gates the visibility of kernel information behind a flag on the OpenSCAP step. --- .../steps/Oscap/OscapProfileInformation.tsx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/Components/CreateImageWizard/steps/Oscap/OscapProfileInformation.tsx b/src/Components/CreateImageWizard/steps/Oscap/OscapProfileInformation.tsx index 6b3419a1..56259526 100644 --- a/src/Components/CreateImageWizard/steps/Oscap/OscapProfileInformation.tsx +++ b/src/Components/CreateImageWizard/steps/Oscap/OscapProfileInformation.tsx @@ -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} + {!isKernelEnabled && ( + <> + + Kernel arguments: + + + + + {oscapProfileInfo?.kernel?.append} + + + + + )} {!isServicesStepEnabled && ( <>