Skip to content
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

Change Eventing CR status to WARN if cannot connect to NATS #456

Merged
merged 4 commits into from
Feb 6, 2024

Conversation

marcobebway
Copy link
Contributor

@marcobebway marcobebway commented Feb 5, 2024

Description

Change Eventing CR status to WARN if cannot connect to NATS, because this is something the Eventing user can fix. As part of this PR, I removed unused function calls from the connection mock.

Related issue(s)

@marcobebway marcobebway requested a review from a team as a code owner February 5, 2024 11:15
@marcobebway marcobebway requested a review from muralov February 5, 2024 11:15
@kyma-bot kyma-bot added cla: yes Indicates the PR's author has signed the CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Feb 5, 2024
@marcobebway marcobebway linked an issue Feb 5, 2024 that may be closed by this pull request
@marcobebway
Copy link
Contributor Author

/hold

@kyma-bot kyma-bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 5, 2024
@marcobebway marcobebway self-assigned this Feb 5, 2024
)
}

return kctrl.Result{}, r.syncStatusWithNATSErr(ctx, eventingCR, connErr, log)
return kctrl.Result{}, r.syncStatusWithNATSState(ctx, operatorv1alpha1.StateWarning, eventingCR, connErr, log)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have test case for this case too? I see we have only for ErrCannotConnect error.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@kyma-bot kyma-bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Feb 5, 2024
@marcobebway marcobebway force-pushed the 267-fix-eventing-status branch 2 times, most recently from 82ada0e to af0e513 Compare February 5, 2024 16:17
@marcobebway marcobebway force-pushed the 267-fix-eventing-status branch from af0e513 to 379be11 Compare February 5, 2024 16:18
@marcobebway marcobebway requested a review from muralov February 5, 2024 16:36
@kyma-bot kyma-bot added the lgtm Looks good to me! label Feb 6, 2024
@marcobebway
Copy link
Contributor Author

/hold cancel

@kyma-bot kyma-bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 6, 2024
@kyma-bot kyma-bot merged commit ffcdf50 into kyma-project:main Feb 6, 2024
15 checks passed
@marcobebway marcobebway deleted the 267-fix-eventing-status branch February 6, 2024 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Indicates the PR's author has signed the CLA. lgtm Looks good to me! size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NATS-Cr in in deletion state results in eventing-cr in error state
3 participants