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
HPA In-Context (Delete | Edit | Topology Sidebar) #6150
HPA In-Context (Delete | Edit | Topology Sidebar) #6150
Conversation
1b007a6
to
078b098
Compare
078b098
to
5e78dfd
Compare
frontend/packages/console-shared/src/components/pod/PodRing.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/dev-console/src/components/topology/data-transforms/transform-utils.ts
Outdated
Show resolved
Hide resolved
/retest |
Odd, not sure what happened. Somewhere from last week to now through rebases the association code found an unlikely home in the wrong spot. HPAs were not associated with the resource anymore. Should be fixed now though. |
frontend/packages/console-shared/src/components/pod/PodRing.tsx
Outdated
Show resolved
Hide resolved
}; | ||
|
||
export const HPAOverview: React.FC<HPAOverviewProps> = ({ hpas }) => { | ||
if (!hpas?.length) { |
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.
if (!hpas?.length) { | |
if (hpas?.length === 0) { |
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.
hpas
being null won't match 0
absolutely. So that changes the logic. Either we don't have hpas OR we have an array of zero is the logic today, if we wanted to keep that and compare against 0:
if (!hpas?.length) { | |
if (!hpas || hpas.length === 0) { |
Could verify that the "Edit HPA" menu was shown with the latest commit (97f28cd) 👍 Some comments are still open, but it lgtm. I tested it with local web console on a shared cluster. |
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.
Verify all the scenarios and it works as expected.
/lgtm
I've logged a couple bugs to cover the missing things found: https://issues.redhat.com/browse/ODC-4411 /assign @christianvogt Christian, we'll need an approval from you to get this in before EOD tomorrow. |
/retest |
/test e2e-gcp-console |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andrewballantyne, christianvogt, vikram-raj 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 |
/retest |
@andrewballantyne: The following test failed, say
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/test-infra repository. I understand the commands that are listed here. |
/retest Please review the full test history for this PR and help us cut down flakes. |
Combined for easy reviewing. Former PRs: #6037, #6039, #6087
Fixes:
https://issues.redhat.com/browse/ODC-4270
https://issues.redhat.com/browse/ODC-4271
https://issues.redhat.com/browse/ODC-4272
Analysis / Root cause:
Solution Description:
Screen shots / Gifs for design review:
@openshift/team-devconsole-ux & @lwrigh
When a custom metric is in play, we auto select the YAML - they can still use the Form when they so desire to get access to cpu / memory (if applicable), the hpa name and min/max replica counts.
Sidebar:
Unit test coverage report:
Test setup:
Browser conformance: