-
Notifications
You must be signed in to change notification settings - Fork 39.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
makes unavailableGauge metric to always reflect the current state of a service #87778
makes unavailableGauge metric to always reflect the current state of a service #87778
Conversation
/assign @sttts |
Currently, I would have to update Given the low value of the new tests for metrics and the complexity they introduced, I would opt for removing them. |
cc9ff2e
to
7368862
Compare
decided to remove unit tests see |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: p0lyn0mial, sttts 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 |
/label release-note |
@p0lyn0mial: The label(s) 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. |
/remove-release-note-label-needed |
/retest |
/retest Review the full test history for this PR. Silence the bot with an |
@jktomer: GitHub didn't allow me to request PR reviews from the following users: hankang. Note that only kubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs. 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. |
/cc @logicalhan |
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
/retest Review the full test history for this PR. Silence the bot with an |
2 similar comments
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
…es#87778 will be implemented
What type of PR is this?
/kind bug
What this PR does / why we need it: It always sets
unavailableGauge
metric to reflect the current state of a service. It solves a potential issue especially in an HA setup where one instance could observe and mark a service as unavailable whereas some other instance might observe it as available. That would prevent the first instance from reflecting that state since it wouldn't observe any changes.Initially, it also added new tests for metrics and refactored already existing ones so that the metrics tests are run in serial since they operate on a global variable. It turned out to be overly complex and given the low value of the new tests, we decided to remove unit tests for now.
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: