This is an automated email from the ASF dual-hosted git repository. squakez pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 8e16e8de6eca96dd11c9031af6fb587e7cddb7f4 Author: Anshul Jagota <[email protected]> AuthorDate: Wed Nov 4 21:04:37 2026 +0530 fix(e2e/keda): add credentials secret for artemis keda scaler polling --- e2e/keda/files/artemis-ephemeral.yaml | 17 ++++++++++++++--- e2e/keda/files/keda-it-artemis-to-log-auto.yaml | 17 ++++++++++++++--- e2e/keda/files/timer-to-artemis.yaml | 2 ++ 3 files changed, 30 insertions(+), 6 deletions(-) diff --git a/e2e/keda/files/artemis-ephemeral.yaml b/e2e/keda/files/artemis-ephemeral.yaml index ac70bfb63..262ed82dc 100644 --- a/e2e/keda/files/artemis-ephemeral.yaml +++ b/e2e/keda/files/artemis-ephemeral.yaml @@ -15,6 +15,15 @@ # limitations under the License. # --------------------------------------------------------------------------- +apiVersion: v1 +kind: Secret +metadata: + name: my-broker-credentials-secret +type: Opaque +stringData: + AMQ_USER: admin + AMQ_PASSWORD: admin +--- apiVersion: apps/v1 kind: Deployment metadata: @@ -33,10 +42,12 @@ spec: - name: artemis image: apache/artemis:latest-alpine env: - - name: ANONYMOUS_LOGIN - value: "true" + - name: ARTEMIS_USER + value: "admin" + - name: ARTEMIS_PASSWORD + value: "admin" - name: EXTRA_ARGS - value: "--http-host 0.0.0.0 --relax-jolokia --name amq-broker --queues my-queue --allow-anonymous" + value: "--http-host 0.0.0.0 --relax-jolokia --name amq-broker --queues my-queue" ports: - containerPort: 61616 name: amqp diff --git a/e2e/keda/files/keda-it-artemis-to-log-auto.yaml b/e2e/keda/files/keda-it-artemis-to-log-auto.yaml index 58d03bceb..5d51efa40 100644 --- a/e2e/keda/files/keda-it-artemis-to-log-auto.yaml +++ b/e2e/keda/files/keda-it-artemis-to-log-auto.yaml @@ -31,12 +31,23 @@ spec: properties: - camel.component.amqp.broker-url=amqp://my-broker-hdls-svc.keda.svc:61616 - quarkus.qpid-jms.url=amqp://my-broker-hdls-svc.keda.svc:61616 + - quarkus.qpid-jms.username=admin + - quarkus.qpid-jms.password=admin keda: enabled: true minReplicaCount: 0 maxReplicaCount: 1 cooldownPeriod: 20 pollingInterval: 10 - autoMetadata: - artemis-queue: - brokerName: amq-broker + triggers: + - type: artemis-queue + metadata: + managementEndpoint: my-broker-hdls-svc.keda.svc:8161 + queueName: my-queue + brokerAddress: my-queue + brokerName: amq-broker + secrets: + - name: my-broker-credentials-secret + mapping: + AMQ_USER: username + AMQ_PASSWORD: password diff --git a/e2e/keda/files/timer-to-artemis.yaml b/e2e/keda/files/timer-to-artemis.yaml index b0f2a1e0e..6ed337704 100644 --- a/e2e/keda/files/timer-to-artemis.yaml +++ b/e2e/keda/files/timer-to-artemis.yaml @@ -33,3 +33,5 @@ spec: properties: - camel.component.amqp.broker-url=amqp://my-broker-hdls-svc.keda.svc:61616 - quarkus.qpid-jms.url=amqp://my-broker-hdls-svc.keda.svc:61616 + - quarkus.qpid-jms.username=admin + - quarkus.qpid-jms.password=admin
