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

Add Provider for Google Pub/Sub Topic #543

Merged
merged 1 commit into from
Jun 16, 2023
Merged

Conversation

matheuscscp
Copy link
Collaborator

@matheuscscp matheuscscp commented Jun 6, 2023

Fixes #539

@matheuscscp matheuscscp force-pushed the gcloud-pubsub branch 3 times, most recently from 22cdfd8 to de992b5 Compare June 6, 2023 17:47
@matheuscscp matheuscscp marked this pull request as ready for review June 6, 2023 17:51
@matheuscscp matheuscscp force-pushed the gcloud-pubsub branch 3 times, most recently from d8b2e66 to 508e814 Compare June 6, 2023 18:07
internal/notifier/google_pubsub_topic.go Outdated Show resolved Hide resolved
internal/server/event_server.go Outdated Show resolved Hide resolved
internal/controller/provider_controller.go Outdated Show resolved Hide resolved
internal/controller/provider_controller.go Outdated Show resolved Hide resolved
internal/notifier/google_pubsub_topic_test.go Outdated Show resolved Hide resolved
internal/notifier/google_pubsub_topic_test.go Outdated Show resolved Hide resolved
internal/notifier/google_pubsub_topic_test.go Outdated Show resolved Hide resolved
@matheuscscp matheuscscp force-pushed the gcloud-pubsub branch 7 times, most recently from 03cb325 to 5801ba9 Compare June 7, 2023 13:44
@matheuscscp matheuscscp force-pushed the gcloud-pubsub branch 5 times, most recently from 6300d88 to 5148b5c Compare June 8, 2023 00:57
@matheuscscp matheuscscp force-pushed the gcloud-pubsub branch 4 times, most recently from 9c377df to 83f6109 Compare June 8, 2023 13:35
docs/spec/v1beta2/providers.md Outdated Show resolved Hide resolved
internal/notifier/google_pubsub_topic.go Outdated Show resolved Hide resolved
internal/notifier/google_pubsub_topic.go Outdated Show resolved Hide resolved
internal/notifier/google_pubsub_topic_test.go Outdated Show resolved Hide resolved
internal/notifier/google_pubsub_topic.go Outdated Show resolved Hide resolved
internal/notifier/google_pubsub_topic.go Outdated Show resolved Hide resolved
@darkowlzz darkowlzz added the area/alerting Alerting related issues and PRs label Jun 14, 2023
@matheuscscp matheuscscp force-pushed the gcloud-pubsub branch 10 times, most recently from a7f236f to 1be2577 Compare June 16, 2023 09:47
@darkowlzz
Copy link
Contributor

darkowlzz commented Jun 16, 2023

TestProviderReconciler_Reconcile/finalizes_suspended_object seems to fail a lot. Most likely due to the usage of Update() method

g.Expect(k8sClient.Update(context.Background(), resultR)).To(Succeed())
.
It may be better to use a patch helper, similar to https://github.com/fluxcd/source-controller/blob/a0ff0cfa885e1e5f506a593a9de39174cf1dfeb8/internal/controller/common_test.go#L137-L140 .
Receiver test has a lot of usage of Update() but that specific test fails with version conflict. It should be okay to update just that test for now.
@matheuscscp can you give it a try as a separate commit? Just create a patch helper, set suspend directly on the object and call patch to update it.

@matheuscscp matheuscscp force-pushed the gcloud-pubsub branch 2 times, most recently from d51fd94 to 888bf5d Compare June 16, 2023 11:54
Copy link
Contributor

@darkowlzz darkowlzz left a comment

Choose a reason for hiding this comment

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

LGTM!
The receiver related test failure is unrelated to these changes. That can be addressed here or separately.

Signed-off-by: Matheus Pimenta <matheuscscp@gmail.com>
Co-authored-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
Co-authored-by: Max Jonas Werner <makkes@users.noreply.github.com>
Co-authored-by: Sunny <darkowlzz@protonmail.com>
Copy link
Member

@makkes makkes left a comment

Choose a reason for hiding this comment

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

Good job, @matheuscscp! lgtm

@makkes makkes merged commit 508e8f1 into fluxcd:main Jun 16, 2023
@matheuscscp matheuscscp deleted the gcloud-pubsub branch June 16, 2023 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/alerting Alerting related issues and PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: Provider for Google Cloud Pub/Sub
4 participants