Skip to content

Commit

Permalink
Support for Username and Password Authentication in Selenium Grid Scaler
Browse files Browse the repository at this point in the history
Signed-off-by: Vei0vis <NeXt_95@web.de>
  • Loading branch information
Vei0vis authored and Vei0vis committed Sep 8, 2024
1 parent de0986c commit 10e1edf
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions content/docs/2.16/scalers/selenium-grid-scaler.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 10e1edf

Please sign in to comment.