Skip to content

[RHSTOR-7189] Implement Multus network isolation acknowledgment flow #2110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TimothyAsirJeyasing
Copy link
Contributor

https://issues.redhat.com/browse/RHSTOR-7459
This PR implements the enhanced Multus network isolation flow with required user acknowledgment before proceeding. Key changes include:

New UI Components:
Added warning alert with detailed requirements for Multus configuration
Implemented acknowledgment checkbox that must be checked before network selection
Progressive disclosure of network interface dropdowns after acknowledgment

Validation Flow:
Users must explicitly acknowledge running validation tests before configuring networks
Next button remains disabled until both acknowledgment is checked AND networks are selected
Clear visual separation between default pod network and Multus options

Screenshot 2025-06-05 at 7 10 54 PM Screenshot 2025-06-05 at 7 10 38 PM

Copy link
Contributor

openshift-ci bot commented Jun 5, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: TimothyAsirJeyasing
Once this PR has been reviewed and has the lgtm label, please assign alfonsomthd for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@TimothyAsirJeyasing
Copy link
Contributor Author

Screenshot 2025-06-30 at 6 36 54 PM

Please review @SanjalKatiyar , @bipuladh , @alfonsomthd

Copy link
Contributor

openshift-ci bot commented Jun 30, 2025

@TimothyAsirJeyasing: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/odf-console-e2e-aws 0c57d7a link true /test odf-console-e2e-aws

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.


{/* Isolate Network Section */}
<h2 className="odf-section-header odf-mt-lg">{t('Isolate Network')}</h2>
<div className="odf-indented-section">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In clean code, intentional naming is about your domain (your business concepts, like "Multus"), not formatting details like "indentation".

Suggested change
<div className="odf-indented-section">
<div className="odf-multus-section">


{networkType === NetworkType.MULTUS && (
<>
<div className="odf-multus-indent pf-v5-u-mt-md">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<div className="odf-multus-indent pf-v5-u-mt-md">
<div className="odf-multus-section__warning pf-v5-u-mt-md">

</Alert>
</div>

<div className="odf-multus-indent">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<div className="odf-multus-indent">
<div className="odf-multus__ack-checkbox">

description={t(
'Multus allows a network seperation between the data operations and the control plane operations.'
<div className="odf-multus-configuration">
{/* Network Section */}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{/* Network Section */}

systemNamespace={systemNamespace}
</Alert>

{/* Isolate Network Section */}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems not necessary as the header text already explains it.

Suggested change
{/* Isolate Network Section */}

@@ -17,9 +17,16 @@ import {
WatchK8sResults,
} from '@openshift-console/dynamic-plugin-sdk';
import { SelectOption } from '@patternfly/react-core/deprecated';
import { flatMap } from 'lodash-es';
Copy link
Collaborator

@alfonsomthd alfonsomthd Jul 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unnecessary as we're already importing * as 'lodash-es' in the following line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants