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

feat: Prevent EventBus with clients connected from being deleted #1066

Merged
merged 5 commits into from Feb 13, 2021

Conversation

whynowy
Copy link
Member

@whynowy whynowy commented Feb 11, 2021

Signed-off-by: Derek Wang whynowy@gmail.com

Checklist:

//
// It could also be used to check if the EventBus object can be safely deleted.
func Uninstall(ctx context.Context, eventBus *v1alpha1.EventBus, client client.Client, natsStreamingImage, natsMetricsImage string, logger *zap.SugaredLogger) error {
linkedEventSources, err := linkedEventSources(ctx, eventBus.Namespace, eventBus.Name, client)
Copy link
Member Author

Choose a reason for hiding this comment

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

Check if there's any EventSource or Sensor connected, if true, return an error, which will re-queue the request.

Signed-off-by: Derek Wang <whynowy@gmail.com>
@whynowy whynowy marked this pull request as draft February 12, 2021 00:55
Signed-off-by: Derek Wang <whynowy@gmail.com>
@whynowy whynowy marked this pull request as ready for review February 12, 2021 01:27
Signed-off-by: Derek Wang <whynowy@gmail.com>
Copy link
Contributor

@VaibhavPage VaibhavPage left a comment

Choose a reason for hiding this comment

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

LGTM!

@whynowy whynowy merged commit 95d0818 into argoproj:master Feb 13, 2021
@whynowy whynowy deleted the eb_del_protect branch February 13, 2021 22:37
@whynowy whynowy mentioned this pull request Feb 17, 2021
juliev0 pushed a commit to juliev0/argo-events that referenced this pull request Mar 29, 2022
…oproj#1066)

* feat: Prevent EventBus with clients connected from being deleted

Signed-off-by: Derek Wang <whynowy@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants