-
Notifications
You must be signed in to change notification settings - Fork 16
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
Rely on the NATS cluster connection status when reporting the Eventing CR status #331
Rely on the NATS cluster connection status when reporting the Eventing CR status #331
Conversation
e5a8405
to
1a355aa
Compare
601af6a
to
4edf614
Compare
/hold |
Remaining tasks:
|
31c731c
to
5bfa88a
Compare
5bfa88a
to
874c749
Compare
4eecb1e
to
df439d7
Compare
RegisterReconnectHandlerIfNotRegistered(natsio.ConnHandler) | ||
|
||
// RegisterDisconnectErrHandlerIfNotRegistered registers a DisconnectErrHandler only if it was not registered before. | ||
RegisterDisconnectErrHandlerIfNotRegistered(natsio.ConnErrHandler) |
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.
(nitpick): Can we shorten the name to RegisterDisconnectErrHandler
? The if not registered can be documented.
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.
Done
) error { | ||
// check if the backend was changed. | ||
if !eventing.IsSpecBackendTypeChanged() { | ||
if eventingCR.IsPreviousBackendEmpty() || !eventingCR.IsSpecBackendTypeChanged() { |
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.
👍🏼
3195dcb
to
7c9d981
Compare
/hold cancel |
Description
Rely on the NATS cluster connection status when reporting the Eventing CR status.
As part of this PR, remove unsupported conditions from the Eventing Status. Because currently we preserve conditions even though it is removed in old releases.
Related issue(s)
in deletion state
results in eventing-cr inerror
state #267.