Skip to content
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

CNV-34895: Adding storage checkups #1598

Merged

Conversation

metalice
Copy link
Member

@metalice metalice commented Nov 6, 2023

📝 Description

Adding storage checkups is very similar to network checkups.
More info can be found here: https://github.com/kiagnose/kubevirt-storage-checkup

🎥 Demo

image

image

image

@openshift-ci-robot
Copy link
Collaborator

openshift-ci-robot commented Nov 6, 2023

@metalice: This pull request references CNV-34895 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the epic to target the "4.15.0" version, but no target version was set.

In response to this:

📝 Description

Adding storage checkups is very similar to network checkups.
More info can be found here: https://github.com/kiagnose/kubevirt-storage-checkup

🎥 Demo

image

image

image

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/test-infra repository.

@openshift-ci openshift-ci bot added the approved This issue is something we want to fix label Nov 6, 2023
@metalice metalice force-pushed the CNV-34895-storage-checkups branch 2 times, most recently from 488c620 to 90419e2 Compare November 8, 2023 07:33
Comment on lines +18 to +31
const [activeTabKey, setActiveTabKey] = useState<number | string>(
history?.location?.pathname.endsWith('storage') ? 1 : 0,
);

useEffect(() => {
history.push(
createURL(activeTabKey === 0 ? 'network' : 'storage', trimLastHistoryPath(history)),
);
}, [activeTabKey, history, history?.location?.pathname]);

return (
<>
<ListPageHeader title={t('Checkups')}>
<CheckupsRunButton {...props} />
<CheckupsRunButton history={history} />
Copy link
Member

Choose a reason for hiding this comment

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

Seems like network and storage can be defined as parameters in the path.
So that you can grab them using match.params from the RouteComponentProps props

Like /k8s/ns/:ns/checkups/:type/form. Would we insert other types of Checkups in the future?

Copy link
Member Author

Choose a reason for hiding this comment

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

no plans for more right now.
it wont really give me anything adding :type as params, as each one is a different component, and console-extention is managing the lins and component according to links, except Checkups.tsx which function a bit as a router because of the tabs which I don't have a way around it.

Signed-off-by: Matan Schatzman <mschatzm@redhat.com>
@openshift-ci openshift-ci bot added the lgtm Passed code review, ready for merge label Nov 20, 2023
Copy link
Contributor

openshift-ci bot commented Nov 20, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: metalice, upalatucci

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

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [metalice,upalatucci]

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

@openshift-merge-bot openshift-merge-bot bot merged commit e4cb2b2 into kubevirt-ui:main Nov 20, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved This issue is something we want to fix jira/valid-reference lgtm Passed code review, ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants