-
Notifications
You must be signed in to change notification settings - Fork 30
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-19275: Add virtctl to overview #746
CNV-19275: Add virtctl to overview #746
Conversation
1cff7b4
to
3ceb4ae
Compare
}); | ||
|
||
const tools = Array.isArray(cliTools) ? cliTools : [...[cliTools]]; | ||
// skipcq: JS-0349 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does it mean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this skip DeepSource checks? why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
useK8sWatchResource won't help in this case?
const tools = Array.isArray(cliTools) ? cliTools : [...[cliTools]]; | ||
// skipcq: JS-0349 | ||
const virtctlObj = tools?.find( | ||
(tool) => (tool as K8sResourceCommon)?.metadata?.name === VIRTCTL_DOWNLOADS, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
u sure K8sResourceCommon and K8sResourceKind are mandatory here as hard casting?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I typically don't hard cast unless I get errors, but I double-checked and was able to remove the hard cast to K8sResourceCommon
, but the K8sResourceKind
is needed to avoid an error as described in the DeepSource comment above.
Hi @pcbailey thanks for the PR. I left some small comments :) |
3ceb4ae
to
34ed739
Compare
34ed739
to
b6b8ac2
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: metalice, pcbailey 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:
Approvers can indicate their approval by writing |
📝 Description
This PR adds a link to the overview header that displays a popup with information on downloading
virtctl
when clicked.Screenshots
Popup closed
Without the
Show getting started resources
buttonWith the
Show getting started resources
buttonPopup open
Without the
Show getting started resources
buttonWith the
Show getting started resources
button