From 072662cffc53cf9d35b9d6c0b6d20c002077ac17 Mon Sep 17 00:00:00 2001 From: Vei0vis <101354315+Vei0vis@users.noreply.github.com> Date: Sun, 6 Oct 2024 22:45:24 +0200 Subject: [PATCH] Support for Username and Password Authentication in Selenium Grid Scaler (#1466) Signed-off-by: Vei0vis Co-authored-by: Vei0vis --- content/docs/2.16/scalers/selenium-grid-scaler.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/content/docs/2.16/scalers/selenium-grid-scaler.md b/content/docs/2.16/scalers/selenium-grid-scaler.md index d30c30aa9..583ae6995 100644 --- a/content/docs/2.16/scalers/selenium-grid-scaler.md +++ b/content/docs/2.16/scalers/selenium-grid-scaler.md @@ -153,6 +153,11 @@ It is possible to specify the Graphql url of your Selenium Grid using authentica - `url` - Graphql url of your Selenium Grid. Refer to the Selenium Grid's documentation [here](https://www.selenium.dev/documentation/en/grid/grid_4/graphql_support/) for more info. +As an alternative you can also authenticate by using username and password via `TriggerAuthentication` configuration instead of using url. + +- `username` - Username for connect to the Selenium Grid graphql endpoint. +- `password` - Password for connect to the Selenium Grid graphql endpoint. + ```yaml apiVersion: v1 kind: Secret @@ -162,6 +167,9 @@ metadata: type: Opaque data: graphql-url: base64 encoded value of GraphQL URL + # or use username and password separately + grid-username: GRID_USERNAME + grid-password: GRID_PASSWORD --- apiVersion: keda.sh/v1alpha1 kind: TriggerAuthentication @@ -173,6 +181,12 @@ spec: - parameter: url name: selenium-grid-secret key: graphql-url + - parameter: username + name: selenium-grid-secret + key: grid-username + - parameter: password + name: selenium-grid-secret + key: grid-password --- apiVersion: keda.sh/v1alpha1 kind: ScaledObject