Skip to content

Commit

Permalink
fix(ui): Fix color generation for pod name in logs viewer. Fixes #17704
Browse files Browse the repository at this point in the history
… (#17706) (#17710)

* Fix color generation for pod name in logs viewer



* Add rebuy to users.md



---------

Signed-off-by: Philipp Trulson <[email protected]>
Co-authored-by: Philipp Trulson <[email protected]>
  • Loading branch information
gcp-cherry-pick-bot[bot] and der-eismann authored Apr 2, 2024
1 parent d124f16 commit 73be9c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions USERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ Currently, the following organizations are **officially** using Argo CD:
1. [QuintoAndar](https://quintoandar.com.br)
1. [Quipper](https://www.quipper.com/)
1. [RapidAPI](https://www.rapidapi.com/)
1. [rebuy](https://www.rebuy.de/)
1. [Recreation.gov](https://www.recreation.gov/)
1. [Red Hat](https://www.redhat.com/)
1. [Redpill Linpro](https://www.redpill-linpro.com/)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function stringHashCode(str: string) {

// ansi color for pod name
function podColor(podName: string) {
return colors[stringHashCode(podName) % colors.length];
return colors[Math.abs(stringHashCode(podName) % colors.length)];
}

// https://2ality.com/2012/09/empty-regexp.html
Expand Down

0 comments on commit 73be9c4

Please sign in to comment.