-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add color to hpa line when replicas >= maxpods #2333
base: master
Are you sure you want to change the base?
Conversation
38ef8ee
to
1f3eda6
Compare
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.
@arthurcgc Thank you for this update Arthur! Just a few picks...
internal/render/hpa.go
Outdated
return func(ns string, h Header, re RowEvent) tcell.Color { | ||
c := DefaultColorer(ns, h, re) | ||
|
||
maxPodsS := strings.TrimSpace(re.Row.Fields[h.IndexOf("MAXPODS", true)]) |
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.
We should validate IndexOf
returns a valid index ie within the Fields range.
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.
hey @derailed, thanks for reviewing my PR. I'll make the changes!
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.
hey @derailed , could you take another look? Can I mark it as resolved?
This PR implements the feature described in this issue: #2279