-
Notifications
You must be signed in to change notification settings - Fork 52
feat: Update cpu and memory charts on namespace #3711
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
feat: Update cpu and memory charts on namespace #3711
Conversation
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.
Partial review
return podsMetrics.reduce((accData, pod) => { | ||
return { | ||
cpu: { | ||
usage: accData.cpu.usage + (pod?.cpu?.usage ?? 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.
I would consider to wrap all addition by getCpus
or getBytes
functions because sometimes k8s can return values with different prefix.
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.
tests/integration/tests/namespace/test-namespace-overview.spec.js
Outdated
Show resolved
Hide resolved
New changes are detected. LGTM label has been removed. |
Description
Changes proposed in this pull request:
Related issue(s)
Closes #3592
Definition of done
backlog#4567