From 00b2f1a475d96d9f66b417a01240afff8392d8ff Mon Sep 17 00:00:00 2001 From: Mark DeNeve Date: Tue, 19 Apr 2022 10:43:18 -0400 Subject: [PATCH 1/2] adding corsHeader documentation for keda issue #2884 Signed-off-by: Mark DeNeve --- content/docs/2.7/scalers/activemq.md | 3 ++- content/docs/2.7/scalers/artemis.md | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/content/docs/2.7/scalers/activemq.md b/content/docs/2.7/scalers/activemq.md index 07b214ea9..5c43a605b 100644 --- a/content/docs/2.7/scalers/activemq.md +++ b/content/docs/2.7/scalers/activemq.md @@ -27,7 +27,8 @@ triggers: - `destinationName` - Name of the queue to check for the message count. - `brokerName` - Name of the broker as defined in ActiveMQ. - `targetQueueSize` - Target value for queue length passed to the scaler. The scaler will cause the replicas to increase if the queue message count is greater than the target value per active replica. (Default: `10`, Optional) -- `restAPITemplate` - Template to build REST API url to get queue size. (Default: `"http://{{.ManagementEndpoint}}/api/jolokia/read/org.apache.activemq:type=Broker,brokerName={{.BrokerName}},destinationType=Queue,destinationName={{.DestinationName}}/QueueSize"`, Optional) +- `restAPITemplate` - Template to build REST API url to get queue size. (Default: `"http://{{.ManagementEndpoint}}/api/jolokia/read/org.apache.activemq:type=Broker,brokerName={{.BrokerName}},destinationType=Queue,destinationName={{.DestinationName}}/QueueSize"`, Optional) +- `corsHeader` - Value to populate the Origin header field for CORS filtering. (Default: `"http://<>"`, Optional) **Parameter Requirements:** diff --git a/content/docs/2.7/scalers/artemis.md b/content/docs/2.7/scalers/artemis.md index 342dd6da0..e70cec838 100644 --- a/content/docs/2.7/scalers/artemis.md +++ b/content/docs/2.7/scalers/artemis.md @@ -33,6 +33,7 @@ triggers: - `brokerAddress` - Address of the broker. - `queueLength` - Target value for queue length passed to the scaler. Example: if one pod can handle 10 messages, set the queue length target to 10. If the actual number of messages in the queue is 30, the scaler scales to 3 pods. (default: 10) - `restApiTemplate` - Template to build REST API url to get queue size. (Default: `"http://<>/console/jolokia/read/org.apache.activemq.artemis:broker=\"<>\",component=addresses,address=\"<>\",subcomponent=queues,routing-type=\"anycast\",queue=\"<>\"/MessageCount"`, Optional) +- `corsHeader` - Value to populate the Origin header field for CORS filtering. (Default: `"http://<>"`, Optional) ### Authentication Parameters From e8542ecfd8520d5a6037d3ca6d1f4e424faaaccc Mon Sep 17 00:00:00 2001 From: Mark DeNeve Date: Wed, 20 Apr 2022 11:36:30 -0400 Subject: [PATCH 2/2] adding corsHeader documentation back to version 2.3 when it was added. Signed-off-by: Mark DeNeve --- content/docs/2.3/scalers/artemis.md | 1 + content/docs/2.4/scalers/artemis.md | 1 + content/docs/2.5/scalers/artemis.md | 1 + content/docs/2.6/scalers/artemis.md | 1 + content/docs/2.7/scalers/activemq.md | 2 +- content/docs/2.7/scalers/artemis.md | 2 +- 6 files changed, 6 insertions(+), 2 deletions(-) diff --git a/content/docs/2.3/scalers/artemis.md b/content/docs/2.3/scalers/artemis.md index 342dd6da0..8de7bff1a 100644 --- a/content/docs/2.3/scalers/artemis.md +++ b/content/docs/2.3/scalers/artemis.md @@ -33,6 +33,7 @@ triggers: - `brokerAddress` - Address of the broker. - `queueLength` - Target value for queue length passed to the scaler. Example: if one pod can handle 10 messages, set the queue length target to 10. If the actual number of messages in the queue is 30, the scaler scales to 3 pods. (default: 10) - `restApiTemplate` - Template to build REST API url to get queue size. (Default: `"http://<>/console/jolokia/read/org.apache.activemq.artemis:broker=\"<>\",component=addresses,address=\"<>\",subcomponent=queues,routing-type=\"anycast\",queue=\"<>\"/MessageCount"`, Optional) +- `corsHeader` - Value to populate the Origin header field for CORS filtering. (Default: `"http://<>"`, Optional) ### Authentication Parameters diff --git a/content/docs/2.4/scalers/artemis.md b/content/docs/2.4/scalers/artemis.md index 342dd6da0..8de7bff1a 100644 --- a/content/docs/2.4/scalers/artemis.md +++ b/content/docs/2.4/scalers/artemis.md @@ -33,6 +33,7 @@ triggers: - `brokerAddress` - Address of the broker. - `queueLength` - Target value for queue length passed to the scaler. Example: if one pod can handle 10 messages, set the queue length target to 10. If the actual number of messages in the queue is 30, the scaler scales to 3 pods. (default: 10) - `restApiTemplate` - Template to build REST API url to get queue size. (Default: `"http://<>/console/jolokia/read/org.apache.activemq.artemis:broker=\"<>\",component=addresses,address=\"<>\",subcomponent=queues,routing-type=\"anycast\",queue=\"<>\"/MessageCount"`, Optional) +- `corsHeader` - Value to populate the Origin header field for CORS filtering. (Default: `"http://<>"`, Optional) ### Authentication Parameters diff --git a/content/docs/2.5/scalers/artemis.md b/content/docs/2.5/scalers/artemis.md index 342dd6da0..8de7bff1a 100644 --- a/content/docs/2.5/scalers/artemis.md +++ b/content/docs/2.5/scalers/artemis.md @@ -33,6 +33,7 @@ triggers: - `brokerAddress` - Address of the broker. - `queueLength` - Target value for queue length passed to the scaler. Example: if one pod can handle 10 messages, set the queue length target to 10. If the actual number of messages in the queue is 30, the scaler scales to 3 pods. (default: 10) - `restApiTemplate` - Template to build REST API url to get queue size. (Default: `"http://<>/console/jolokia/read/org.apache.activemq.artemis:broker=\"<>\",component=addresses,address=\"<>\",subcomponent=queues,routing-type=\"anycast\",queue=\"<>\"/MessageCount"`, Optional) +- `corsHeader` - Value to populate the Origin header field for CORS filtering. (Default: `"http://<>"`, Optional) ### Authentication Parameters diff --git a/content/docs/2.6/scalers/artemis.md b/content/docs/2.6/scalers/artemis.md index 342dd6da0..8de7bff1a 100644 --- a/content/docs/2.6/scalers/artemis.md +++ b/content/docs/2.6/scalers/artemis.md @@ -33,6 +33,7 @@ triggers: - `brokerAddress` - Address of the broker. - `queueLength` - Target value for queue length passed to the scaler. Example: if one pod can handle 10 messages, set the queue length target to 10. If the actual number of messages in the queue is 30, the scaler scales to 3 pods. (default: 10) - `restApiTemplate` - Template to build REST API url to get queue size. (Default: `"http://<>/console/jolokia/read/org.apache.activemq.artemis:broker=\"<>\",component=addresses,address=\"<>\",subcomponent=queues,routing-type=\"anycast\",queue=\"<>\"/MessageCount"`, Optional) +- `corsHeader` - Value to populate the Origin header field for CORS filtering. (Default: `"http://<>"`, Optional) ### Authentication Parameters diff --git a/content/docs/2.7/scalers/activemq.md b/content/docs/2.7/scalers/activemq.md index 5c43a605b..00aba7fef 100644 --- a/content/docs/2.7/scalers/activemq.md +++ b/content/docs/2.7/scalers/activemq.md @@ -28,7 +28,7 @@ triggers: - `brokerName` - Name of the broker as defined in ActiveMQ. - `targetQueueSize` - Target value for queue length passed to the scaler. The scaler will cause the replicas to increase if the queue message count is greater than the target value per active replica. (Default: `10`, Optional) - `restAPITemplate` - Template to build REST API url to get queue size. (Default: `"http://{{.ManagementEndpoint}}/api/jolokia/read/org.apache.activemq:type=Broker,brokerName={{.BrokerName}},destinationType=Queue,destinationName={{.DestinationName}}/QueueSize"`, Optional) -- `corsHeader` - Value to populate the Origin header field for CORS filtering. (Default: `"http://<>"`, Optional) +- `corsHeader` - Value to populate the Origin header field for CORS filtering. (Default: `"http://<>"`, Optional) **Parameter Requirements:** diff --git a/content/docs/2.7/scalers/artemis.md b/content/docs/2.7/scalers/artemis.md index e70cec838..8de7bff1a 100644 --- a/content/docs/2.7/scalers/artemis.md +++ b/content/docs/2.7/scalers/artemis.md @@ -33,7 +33,7 @@ triggers: - `brokerAddress` - Address of the broker. - `queueLength` - Target value for queue length passed to the scaler. Example: if one pod can handle 10 messages, set the queue length target to 10. If the actual number of messages in the queue is 30, the scaler scales to 3 pods. (default: 10) - `restApiTemplate` - Template to build REST API url to get queue size. (Default: `"http://<>/console/jolokia/read/org.apache.activemq.artemis:broker=\"<>\",component=addresses,address=\"<>\",subcomponent=queues,routing-type=\"anycast\",queue=\"<>\"/MessageCount"`, Optional) -- `corsHeader` - Value to populate the Origin header field for CORS filtering. (Default: `"http://<>"`, Optional) +- `corsHeader` - Value to populate the Origin header field for CORS filtering. (Default: `"http://<>"`, Optional) ### Authentication Parameters