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
Bug 1848512: Wrong interpretation of labels for resource quota diagram #6416
Bug 1848512: Wrong interpretation of labels for resource quota diagram #6416
Conversation
@dtaylor113: This pull request references Bugzilla bug 1848512, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
In response to this:
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. |
@dtaylor113: This pull request references Bugzilla bug 1848512, which is valid. 3 validation(s) were run on this bug
In response to this:
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. |
/retest |
1 similar comment
/retest |
/retest |
@@ -191,16 +191,32 @@ const NoQuotaGuage = ({ title, className }) => ( | |||
|
|||
export const QuotaGaugeCharts = ({ quota, resourceTypes, chartClassName = null }) => { | |||
const resourceTypesSet = new Set(resourceTypes); | |||
const cpuRequestUsagePercent = |
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.
const cpuRequestUsagePercent = | |
const cpuRequestUsagePercent =getResourceUsage( | |
quota, | |
resourceTypesSet.has('requests.cpu') ? 'requests.cpu' : 'cpu', | |
).percent; |
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.
fixed
resourceTypesSet.has('requests.memory') ? 'requests.memory' : 'memory', | ||
).percent | ||
: 0; | ||
const memoryLimitUsagePercent = resourceTypesSet.has('limits.memory') |
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.
const memoryLimitUsagePercent = resourceTypesSet.has('limits.memory') | |
const memoryLimitUsagePercent = getResourceUsage(quota, 'limits.memory').percent; |
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.
fixed
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.
@dtaylor113 possible simplification?
733e7a3
to
161de9b
Compare
Hi @jcaianirh, applied that pattern to all 4 lines. Had to revert the check between showing a |
/retest |
/retest |
/lgtm |
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.
Do we need the tooltip at all if it simply repeats the label in the middle of the donut?
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dtaylor113, jcaianirh, spadgett 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 |
@dtaylor113: All pull requests linked via external trackers have merged: Bugzilla bug 1848512 has been moved to the MODIFIED state. In response to this:
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. |
Needed to provide
data.x
for chart labels/tooltipBefore
After