-
Notifications
You must be signed in to change notification settings - Fork 135
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
Invalid address error in googlepubsub-provider #680
Comments
Hi, assuming that you're using the latest stable version of notification-controller v1.1.0, google pubsub and azure event hub are the only providers that don't have a URL for address. Looking at the code https://github.com/fluxcd/notification-controller/blob/v1.1.0/internal/controller/provider_controller.go#L181 and the examples in the docs, these two providers are expected to have secret refs which are required for the providers to work. Without secret refs, they are validated like other providers and are expected to have valid URL as address. Notification-controller v1.2 is available which changes some of these validations and you may not see this same error anymore. But this version will be usable only with Flux v2.2, which is planned to release this week. Hope this helps. |
Thanks for your response @darkowlzz . We are using notification-controller v1.0.0. Regarding the secret, we are using GCP Workload Identity so I don't think we need to specify the secret. https://fluxcd.io/flux/components/notification/providers/#google-pubsub
For now, looks like we need to upgrade notification-controller to v1.1.0, and then v1.2 later. |
Seems like that may have missed during testing. Flux v2.2.0 was just released today. If you update you'll get notification-controller v1.2 which should no longer have the URL validation. Can you give it a try? |
Maybe @matheuscscp can also provide some information on this topic. |
Looks like in this pull request https://github.com/fluxcd/notification-controller/pull/565/files I forgot to remove the URL validation in some places. @darkowlzz after the |
I upgraded to 2.2.2 and it works well.
Same thing with kubectl describe
Are these expected behavior? |
Yes, that's the new static v1beta3 API, see https://github.com/fluxcd/notification-controller/blob/main/CHANGELOG.md#static-alerts-and-providers . |
When trying to create a Provider resource as below:
I keep getting this error:
This is debug logs from notification-controller pod:
Can someone let me know what is the valid value for spec.address?
This document shows I should put project id, but it is not working.
https://fluxcd.io/flux/components/notification/providers/#google-pubsub
The text was updated successfully, but these errors were encountered: