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 option to get queueURL from env for aws SQS scaler #3559

Merged
merged 5 commits into from
Oct 21, 2022

Conversation

fk128
Copy link
Contributor

@fk128 fk128 commented Aug 16, 2022

Add queueURLFromEnv as additional trigger metadata to allow loading the queueURL from env variables.

It would be useful to be able to set the queueURL to load from env variables, especially when having multiple deployment environment. This way if using kustomize, the queueURL could be defined in a configmap and loaded as env variable, rather than patching the manifest. This for example would be similar to the addressFromEnv in the redis-lists scaler.

Signed-off-by: Fahdi Kanavati fk128@users.noreply.github.com

Provide a description of what has been changed

Checklist

  • Commits are signed with Developer Certificate of Origin (DCO - learn more)
  • Tests have been added
  • A PR is opened to update the documentation on (repo) (if applicable)

Fixes #

Relates to #
kedacore/keda-docs#902

@fk128 fk128 requested a review from a team as a code owner August 16, 2022 11:54
@fk128 fk128 changed the title Add option to get queueURL from env Add option to get queueURL from env for aws SQS scaler Aug 17, 2022
pkg/scalers/aws_sqs_queue_scaler.go Outdated Show resolved Hide resolved
Copy link
Contributor

@v-shenoy v-shenoy left a comment

Choose a reason for hiding this comment

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

Could you modify the unit tests to include this metadata parameter?

And also raise a documentations PR in kedacore/keda-docs

pkg/scalers/aws_sqs_queue_scaler.go Outdated Show resolved Hide resolved
pkg/scalers/aws_sqs_queue_scaler_test.go Outdated Show resolved Hide resolved
Copy link
Member

@JorTurFer JorTurFer left a comment

Choose a reason for hiding this comment

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

Looking good. Could you solve the DCO issue 🙏 ? We need that all the commits are signed

fk128 and others added 5 commits October 1, 2022 09:57
Add `queueURLFromEnv` as additional trigger metadata to allow loading the queueURL from env variables

Signed-off-by: Fahdi Kanavati <fkanavati@gmail.com>
Co-authored-by: Vighnesh Shenoy <vighneshq@gmail.com>
Signed-off-by: Fahdi Kanavati <fkanavati@gmail.com>
Signed-off-by: Fahdi Kanavati <fkanavati@gmail.com>
Signed-off-by: Fahdi Kanavati <fkanavati@gmail.com>
Signed-off-by: Fahdi Kanavati <fkanavati@gmail.com>
@JorTurFer
Copy link
Member

JorTurFer commented Oct 20, 2022

/run-e2e sqs*
Update: You can check the progress here

@JorTurFer JorTurFer merged commit 7eab93b into kedacore:main Oct 21, 2022
@JorTurFer
Copy link
Member

Thanks for this improvement! ❤️

26tanishabanik pushed a commit to 26tanishabanik/keda that referenced this pull request Nov 1, 2022
* Add option to get queueURL from env

Signed-off-by: Fahdi Kanavati <fkanavati@gmail.com>
Co-authored-by: Vighnesh Shenoy <vighneshq@gmail.com>
Signed-off-by: 26tanishabanik <26tanishabanik@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants