Skip to content

Commit

Permalink
define username under TriggerAuthentication
Browse files Browse the repository at this point in the history
Signed-off-by: ithesadson <[email protected]>
  • Loading branch information
ithesadson committed Mar 21, 2023
1 parent 9d73a84 commit 8376257
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions content/docs/2.11/scalers/solr.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ triggers:
collection: "my_core"
targetQueryValue: "1"
activationTargetQueryValue : "3"
username: "solr"
```
**Parameter list:**
Expand All @@ -29,14 +28,14 @@ triggers:
- `collection` - Your collection name on Solr.
- `targetQueryValue` - A threshold that is used as targetValue or targetAverageValue (depending on the trigger metric type) in HPA. (This value can be a float)
- `activationTargetQueryValue` - Target value for activating the scaler. Learn more about activation [here](./../concepts/scaling-deployments.md#activating-and-scaling-thresholds).(Default: `0`, Optional)
- `username` - Username credential to connect to the Solr service.

### Authentication Parameters

You can authenticate by using a password via TriggerAuthentication configuration.

**Credential based authentication:**

- `username` - Username for configured user to login to the Solr instance.
- `password` - Password for configured user to login to the Solr instance.

### Example
Expand All @@ -48,6 +47,7 @@ metadata:
name: solr-secret
type: Opaque
data:
solr_username: SOLR_USERNAME
solr_password: SOLR_PASSWORD
---
apiVersion: keda.sh/v1alpha1
Expand All @@ -56,6 +56,9 @@ metadata:
name: trigger-auth-solr
spec:
secretTargetRef:
- parameter: username
name: solr-secret
key: solr_username
- parameter: password
name: solr-secret
key: solr_password
Expand All @@ -74,7 +77,6 @@ spec:
query: "*:*"
collection: "my_core"
targetQueryValue: "1"
username: "solr"
authenticationRef:
name: trigger-auth-solr
```

0 comments on commit 8376257

Please sign in to comment.