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

GCP Pub/Sub Scaler: add logic to accept subscription IDs with projectID #2269

Merged
merged 13 commits into from
Nov 23, 2021

Conversation

jmalvarezf-lmes
Copy link
Contributor

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.

…luding projectID

Signed-off-by: Jose Maria Alvarez <jose-maria.alvarez@leroymerlin.es>
Signed-off-by: Jose Maria Alvarez <jose-maria.alvarez@leroymerlin.es>
@jmalvarezf-lmes jmalvarezf-lmes force-pushed the feature/pubsub-other-project branch from 66511aa to 34ba675 Compare November 10, 2021 19:27
@zroubalik
Copy link
Member

I am not GCP expert, @hermanbanken @Friedrich42 WDYT?

@zroubalik zroubalik changed the title Add logic to accept subscription IDs with projectID GCP Pub/Sub Scaler: add logic to accept subscription IDs with projectID Nov 12, 2021
Co-authored-by: Herman <hermanbanken@gmail.com>
Signed-off-by: Jose Maria Alvarez <jose-maria.alvarez@leroymerlin.es>
@jmalvarezf-lmes jmalvarezf-lmes force-pushed the feature/pubsub-other-project branch from 95ab872 to c2e1e25 Compare November 12, 2021 13:17
Jose Maria Alvarez added 2 commits November 12, 2021 14:19
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>
@zroubalik
Copy link
Member

@jmalvarezf-lmes do you think you can open docs PR and update the changelog?
I think that we can proceed with this PR

@zroubalik
Copy link
Member

@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.

Jose Maria Alvarez and others added 4 commits November 17, 2021 11:36
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
Copy link
Contributor Author

Hi @zroubalik,

I've added a test for the regexp, and updated the docs. Let me know if you think they are fine.

Thanks!

@jmalvarezf-lmes
Copy link
Contributor Author

The PR for the docs: kedacore/keda-docs#585

Copy link
Member

@zroubalik zroubalik left a comment

Choose a reason for hiding this comment

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

LGTM

@zroubalik
Copy link
Member

zroubalik commented Nov 23, 2021

@jmalvarezf-lmes the PR looks good, so to merge this, could you please resolve the conflicts that were caused by merging #2266 Thanks!

jmalvarezf-lmes and others added 3 commits November 23, 2021 13:39
Signed-off-by: Jose Maria Alvarez <jose-maria.alvarez@leroymerlin.es>
Signed-off-by: Jose Maria Alvarez <jose-maria.alvarez@leroymerlin.es>
@jmalvarezf-lmes
Copy link
Contributor Author

Hi @zroubalik,

Done.

Regards,

@zroubalik zroubalik merged commit 2664389 into kedacore:main Nov 23, 2021
@zroubalik zroubalik added this to the v2.5.0 milestone Nov 23, 2021
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.

4 participants