-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Mark LoadBalancerReady False when VirtualService failed to be reconciled #6048
Conversation
Currently LoadBalancerReady is not updated even when VirtualService failed to be reconciled. This patch updated LoadBalancerReady with the reason and message by using returned error.
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.
@nak3: 1 warning.
In response to this:
Proposed Changes
Currently
LoadBalancerReady
is not updated even when VirtualService failed to be reconciled.This patch updates LoadBalancerReady with reason and message by using
returned error message.Also,
MarkLoadBalancerPending()
is changed toMarkLoadBalancerNotReady()
by following #5076./lint
Release Note
NONE
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 @JRBANCEL |
@@ -73,11 +77,16 @@ func (is *IngressStatus) MarkLoadBalancerReady(lbs []LoadBalancerIngressStatus, | |||
|
|||
// MarkLoadBalancerPending marks the "IngressConditionLoadBalancerReady" condition to unknown to |
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.
// MarkLoadBalancerPending marks the "IngressConditionLoadBalancerReady" condition to unknown to | |
// MarkLoadBalancerNotReady marks the "IngressConditionLoadBalancerReady" condition to unknown to |
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.
Do we need to make status as NotReady or Unknown?
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.
Thank you for the review.
Do we need to make status as NotReady or Unknown?
You mean that it is strange as MarkLoadBalancerNotReady()
marks Unknown
, correct? I thought so first, but as per #5076 (comment),
MarkFooNotReady -> Ready=Unknown
is the most prevalent for now.
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.
You mean that it is strange as
MarkLoadBalancerNotReady()
marksUnknown
, correct? I thought so first, but as per #5076 (comment),MarkFooNotReady -> Ready=Unknown
is the most prevalent for now.
Yes felt strange.
Thank you i dint see #5076 (comment)
The following is the coverage report on the affected files.
|
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nak3, tcnghia 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 |
Proposed Changes
Currently
LoadBalancerReady
is not updated even when VirtualService failed to be reconciled.This patch updates LoadBalancerReady with reason and message by using
returned error message.
Also,
MarkLoadBalancerPending()
is changed toMarkLoadBalancerNotReady()
by following #5076.
/lint
Release Note
AFTER THIS PATCH: