From 75e133e819426354fc0971147f8a9522417374bb Mon Sep 17 00:00:00 2001 From: Rick Brouwer Date: Mon, 5 Aug 2024 12:08:05 +0200 Subject: [PATCH] Remove unused variables and correct queueDepth default in IBM MQ scaler Signed-off-by: Rick Brouwer --- content/docs/2.16/scalers/ibm-mq.md | 31 ++++++++++------------------- 1 file changed, 10 insertions(+), 21 deletions(-) diff --git a/content/docs/2.16/scalers/ibm-mq.md b/content/docs/2.16/scalers/ibm-mq.md index dd1e83934..a40dec3a5 100644 --- a/content/docs/2.16/scalers/ibm-mq.md +++ b/content/docs/2.16/scalers/ibm-mq.md @@ -16,23 +16,19 @@ triggers: - type: ibmmq metadata: host: # REQUIRED - IBM MQ Queue Manager Admin REST Endpoint - queueManager: # REQUIRED - Your queue manager queueName: # REQUIRED - Your queue name - tlsDisabled: # OPTIONAL - Set 'true' to disable TLS. Default: false - queueDepth: # OPTIONAL - Queue depth target for HPA. Default: 5 messages + queueDepth: # OPTIONAL - Queue depth target for HPA. Default: 20 messages activationQueueDepth: # OPTIONAL - Activation queue depth target. Default: 0 messages - usernameFromEnv: # Optional: Provide admin username from env instead of as a secret - passwordFromEnv: # Optional: Provide admin password from env instead of as a secret - unsafeSsl: # OPTIONAL - Set 'true' for unsafe SSL. Default: false + usernameFromEnv: # OPTIONAL - Provide admin username from env instead of as a secret + passwordFromEnv: # OPTIONAL - Provide admin password from env instead of as a secret + unsafeSsl: "false" # OPTIONAL - Used for skipping certificate check when having self-signed certs 'true'. Default: false ``` **Parameter list:** - `host` - IBM MQ Queue Manager Admin REST Endpoint. Example URI endpoint structure on IBM cloud `https://example.mq.appdomain.cloud/ibmmq/rest/v2/admin/action/qmgr/QM/mqsc`. -- `queueManager` - Name of the queue manager from which messages will be consumed. -- `queueName` - Name of the Queue within the Queue Manager defined from which messages will be consumed. -- `tlsDisabled` - Can be set to 'true' to disable TLS. (Values: `true`, `false` , Default: `false`, Optional) -- `queueDepth` - Queue depth Target for HPA. (Default: `5`, Optional) +- `queueName` - Name of the Queue defined from which messages will be consumed. +- `queueDepth` - Queue depth Target for HPA. (Default: `20`, Optional) - `activationQueueDepth` - Target value for activating the scaler. Learn more about activation [here](./../concepts/scaling-deployments.md#activating-and-scaling-thresholds). (Default: `0`, Optional) - `usernameFromEnv` - Provide admin username from env instead of as a secret. (Optional) - `passwordFromEnv` - Provide admin password from env instead of as a secret. (Optional) @@ -83,12 +79,10 @@ spec: - type: ibmmq metadata: host: # REQUIRED - IBM MQ Queue Manager Admin REST Endpoint - queueManager: # REQUIRED - Your queue manager queueName: # REQUIRED - Your queue name - tlsDisabled: # OPTIONAL - Set 'true' to disable TLS. Default: false - queueDepth: # OPTIONAL - Queue depth target for HPA. Default: 5 messages - usernameFromEnv: # Optional: Provide admin username from env instead of as a secret - passwordFromEnv: # Optional: Provide admin password from env instead of as a secret + queueDepth: # OPTIONAL - Queue depth target for HPA. Default: 20 messages + usernameFromEnv: # OPTIONAL - Provide admin username from env instead of as a secret + passwordFromEnv: # OPTIONAL - Provide admin password from env instead of as a secret authenticationRef: name: keda-ibmmq-trigger-auth --- @@ -107,8 +101,6 @@ spec: key: ADMIN_PASSWORD ``` -### Example - Example with Basic Auth and TLS ```yaml @@ -139,10 +131,8 @@ spec: - type: ibmmq metadata: host: # REQUIRED - IBM MQ Queue Manager Admin REST Endpoint - queueManager: # REQUIRED - Your queue manager queueName: # REQUIRED - Your queue name - tlsDisabled: # OPTIONAL - Set 'true' to disable TLS. Default: false - queueDepth: # OPTIONAL - Queue depth target for HPA. Default: 5 messages + queueDepth: # OPTIONAL - Queue depth target for HPA. Default: 20 messages authenticationRef: name: keda-ibmmq-trigger-auth --- @@ -166,4 +156,3 @@ spec: name: keda-ibmmq-secret key: key ``` -