Skip to content

Commit

Permalink
Assign PostgreSQL userName to correct attribute (#2432)
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Sandquist <tim.sandquist@gmail.com>

Co-authored-by: Zbynek Roubalik <726523+zroubalik@users.noreply.github.com>
  • Loading branch information
tsndqst and zroubalik authored Jan 3, 2022
1 parent 71d6c90 commit 1f59d36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
- Kubernetes Workload Scaler: ignore terminated pods ([#2384](https://github.com/kedacore/keda/pull/2384))
- Azure EventHub Scaler: don't expose connection string in metricName ([#2404](https://github.com/kedacore/keda/pull/2404))
- `keda-operator` Cluster Role: add `list` and `watch` access to service accounts ([#2406](https://github.com/kedacore/keda/pull/2406))|([#2410](https://github.com/kedacore/keda/pull/2410))
- PostgreSQL Scaler: Assign PostgreSQL `userName` to correct attribute ([#2432](https://github.com/kedacore/keda/pull/2432))
- Kafka Scaler: concurrently query brokers for consumer and producer offsets ([#2405](https://github.com/kedacore/keda/pull/2405))
- Delete the cache entry when a ScaledObject is deleted ([#2408](https://github.com/kedacore/keda/pull/2408))

Expand Down
2 changes: 1 addition & 1 deletion pkg/scalers/postgresql_scaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func parsePostgreSQLMetadata(config *ScalerConfig) (*postgreSQLMetadata, error)
return nil, err
}

meta.port, err = GetFromAuthOrMeta(config, "userName")
meta.userName, err = GetFromAuthOrMeta(config, "userName")
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 1f59d36

Please sign in to comment.