-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
🐛 Fix to improper formatting of UnhealthyRange #5932
🐛 Fix to improper formatting of UnhealthyRange #5932
Conversation
internal/controllers/machinehealthcheck/machinehealthcheck_controller.go
Outdated
Show resolved
Hide resolved
ec2497d
to
b490b3c
Compare
e3caf1a
to
c5cc5e5
Compare
c5cc5e5
to
701af5e
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.
Sorry just now took a deeper look into why we need this
internal/controllers/machinehealthcheck/machinehealthcheck_controller.go
Outdated
Show resolved
Hide resolved
internal/controllers/machinehealthcheck/machinehealthcheck_controller.go
Outdated
Show resolved
Hide resolved
701af5e
to
e177f89
Compare
Signed-off-by: killianmuldoon <[email protected]>
e177f89
to
ee2a818
Compare
Nice, one character change :D /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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vincepri 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 |
…lthy-range-format 🐛 Fix to improper formatting of UnhealthyRange
Signed-off-by: killianmuldoon [email protected]
This change adds formatting to a condition and event in the machineHealthCheck controller that handles the percentage sign included in the message.
Previously this message would print as:
Remediation is not allowed, the number of not started or unhealthy machines exceeds maxUnhealthy (total: 1, unhealthy: 0, maxUnhealthy: 45%!)(MISSING)
Due to the percentage sign being included in the unhealthyRange string. There's an example here: https://go.dev/play/p/mX6DG6oRzKW