sarankumar1325 opened a new pull request, #6914: URL: https://github.com/apache/camel-k/pull/6914
Fixes #6908 Adds a KEDA scaler mapping for the `aws2-sqs` component, following the [scaler mapping guide](https://camel.apache.org/camel-k/next/contributing/keda-scaler.html). **Mapping** (`aws2-sqs:<queueNameOrArn>?...` → KEDA type `aws-sqs-queue`): - `queueURL` comes from the `queueUrl` endpoint parameter if set. If not, it is built as `https://sqs.<region>.amazonaws.com/<account>/<queue>`, either from an SQS queue ARN path (`arn:aws:sqs:<region>:<account>:<queue>`) or from a queue name plus the `region` and `queueOwnerAWSAccountId` parameters. If neither is available, `queueURL` is left unset so it can be supplied with `keda.autoMetadata`. - `awsRegion` comes from `region`, or from the ARN. - `awsEndpoint` comes from `uriEndpointOverride`, but only when `overrideEndpoint=true` (the way Camel uses it, e.g. for LocalStack). - Other metadata such as `queueLength` comes from `keda.autoMetadata`, and credentials from a KEDA `TriggerAuthentication`. The trait docs say so. **Tests:** table tests in `pkg/trait/keda/scalers/aws2_sqs_test.go` cover registration, an explicit URL, name + account + region, an ARN, the `//` URI form, a name with only a region, and the endpoint override with and without `overrideEndpoint`. `go test ./pkg/trait/keda/... ./pkg/trait/`, `go vet` and `golangci-lint run ./pkg/trait/keda/...` pass. I used an AI coding assistant to help write this change. I reviewed and tested it. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
