Skip to content

Commit

Permalink
Assign PostgreSQL userName to correct attribute (kedacore#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>
Signed-off-by: alex60217101990 <alex6021710@gmail.com>
  • Loading branch information
2 people authored and alex60217101990 committed Jan 10, 2022
1 parent 250d9c2 commit d45e998
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 @@ -36,6 +36,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 d45e998

Please sign in to comment.