knockknock10 opened a new pull request, #6992:
URL: https://github.com/apache/camel-k/pull/6992

   Closes #6909
   
   Supersedes #6916. The original implementation PR is still open on another 
contributor's fork and has not received the requested scaler-specific E2E 
follow-up. This branch is based directly on current `main` and carries the 
Azure Service Bus mapping forward with queue and topic autoscaling coverage.
   
   ## Implementation
   
   - Registers the `azure-servicebus` Camel component mapper.
   - Maps queue endpoints to KEDA `queueName`.
   - Maps topic endpoints to `topicName` and requires `subscriptionName`; 
incomplete topic configuration is skipped rather than producing a trigger that 
KEDA cannot validate.
   - Supports endpoint options first, then the corresponding 
`camel.component.azure-servicebus.*` properties.
   - Compares `serviceBusType` case-insensitively.
   - Derives KEDA `namespace` only from Azure public-cloud fully qualified 
namespaces. Other Azure clouds remain configurable through `keda.autoMetadata`.
   - Never copies the Camel connection string into trigger metadata.
   
   ## End-to-end coverage
   
   The KEDA workflow starts the Microsoft Azure Service Bus emulator with a 
queue and a topic/subscription. The emulator exposes its management API over 
HTTP, while KEDA 2.17.2's pinned Go Azure SDK uses HTTPS for administration 
requests. The test setup therefore provides an HTTPS-to-HTTP management proxy 
and adds its ephemeral CA to the **KEDA operator** trust store, where the Azure 
scaler runs.
   
   The integration tests exercise both queue and topic autoscaling:
   
   1. Start the consumer Integration with no pending messages and verify it 
scales to zero.
   2. Start a producer Integration that sends messages to the emulator.
   3. Verify KEDA reads the queue or subscription depth, scales the consumer 
up, and the consumer processes the messages.
   4. Stop the producer and verify the consumer scales back to zero.
   
   The Service Bus connection strings are held in Kubernetes Secrets and 
exposed to the Integration Pod through secret-backed `environment.vars`. KEDA 
receives only `connectionFromEnv`; the connection string is not copied into the 
generated ScaledObject.
   
   ## Unit coverage
   
   Covers mapper registration, queue and topic metadata, missing topic 
subscriptions, empty paths, case-insensitive topic selection, 
endpoint-over-component precedence, component property fallback, public and 
non-public Azure namespaces, and ensuring endpoint or component connection 
strings are not copied into trigger metadata.
   
   ## Validation
   
   The focused Go tests and the dedicated KEDA integration workflow must 
execute on this PR before it is marked ready for review. The E2E coverage is 
intended to validate actual scaler metric queries and scale transitions, not 
only ScaledObject generation.


-- 
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]

Reply via email to