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

fix: valid gcp-pubsub gateway type plus validation of parameter #492

Merged
merged 2 commits into from
Feb 14, 2020

Conversation

borgoat
Copy link
Contributor

@borgoat borgoat commented Feb 13, 2020

Fixes #488

The type used in the examples for the GCP PubSub gateway did not match one of those from pkg/apis/common/event-sources.go.

Took me a while to debug so I also thought of adding a validation step to the Gateway Client: if the provided type does not exist, an error is now shown:

INFO[2020-02-13 22:49:03] detected a new event-source...                event-source=gcp-pubsub-event-source
ERRO[2020-02-13 22:49:03] failed to process the event-source reference  error="gateway with type gcp-pubsub is invalid" event-source=gcp-pubsub-event-source

@claassistantio
Copy link

claassistantio commented Feb 13, 2020

CLA assistant check
All committers have signed the CLA.

@borgoat borgoat changed the title valid gcp-pubsub gateway type plus validation of parameter fix: valid gcp-pubsub gateway type plus validation of parameter Feb 13, 2020
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!!

@VaibhavPage VaibhavPage merged commit 2ac99a4 into argoproj:master Feb 14, 2020
juliev0 pushed a commit to juliev0/argo-events that referenced this pull request Mar 29, 2022
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.

GCP PubSub event source not working
3 participants