-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
GCP Pub/Sub Scaler: add logic to accept subscription IDs with projectID #2269
GCP Pub/Sub Scaler: add logic to accept subscription IDs with projectID #2269
Conversation
…luding projectID Signed-off-by: Jose Maria Alvarez <jose-maria.alvarez@leroymerlin.es>
Signed-off-by: Jose Maria Alvarez <jose-maria.alvarez@leroymerlin.es>
66511aa
to
34ba675
Compare
I am not GCP expert, @hermanbanken @Friedrich42 WDYT? |
Co-authored-by: Herman <hermanbanken@gmail.com> Signed-off-by: Jose Maria Alvarez <jose-maria.alvarez@leroymerlin.es>
95ab872
to
c2e1e25
Compare
Signed-off-by: Jose Maria Alvarez <jose-maria.alvarez@leroymerlin.es>
Signed-off-by: Jose Maria Alvarez <jose-maria.alvarez@leroymerlin.es>
Signed-off-by: Jose Maria Alvarez <jose-maria.alvarez@leroymerlin.es>
@jmalvarezf-lmes do you think you can open docs PR and update the changelog? |
@jmalvarezf-lmes And could you please add some tests? We should test the regex, parsing of the new field and even the functionality if possible. |
Signed-off-by: Jose Maria Alvarez <jose-maria.alvarez@leroymerlin.es>
Signed-off-by: Jose Maria Alvarez <jose-maria.alvarez@leroymerlin.es>
Signed-off-by: Jose Maria Alvarez <jose-maria.alvarez@leroymerlin.es>
Hi @zroubalik, I've added a test for the regexp, and updated the docs. Let me know if you think they are fine. Thanks! |
The PR for the docs: kedacore/keda-docs#585 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@jmalvarezf-lmes the PR looks good, so to merge this, could you please resolve the conflicts that were caused by merging #2266 Thanks! |
Signed-off-by: Jose Maria Alvarez <jose-maria.alvarez@leroymerlin.es>
Signed-off-by: Jose Maria Alvarez <jose-maria.alvarez@leroymerlin.es>
Hi @zroubalik, Done. Regards, |
Hi,
This PR should address #2256. Basically, you can provide a subscriptionID with the form of "projects/[a-zA-Z0-9-]+/subscriptions/[a-zA-Z0-9-]+" instead of only the name, so that you are able to use the project ID specified in the chain to know where the subscription is, and not only use the project of the credentials, or the underlying project associated with the infrastructure.
Please, let me know if this helps. Also, if this is suitable, I will update the docs before merging.
Thanks!
Jose Maria.