From ff0e0bb7a1d3c2815daec67dd75e7972179f45f1 Mon Sep 17 00:00:00 2001 From: Tim Sandquist Date: Sun, 2 Jan 2022 19:53:59 -0600 Subject: [PATCH 1/3] Assign PostgreSQL userName to correct attribute Signed-off-by: Tim Sandquist --- pkg/scalers/postgresql_scaler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/scalers/postgresql_scaler.go b/pkg/scalers/postgresql_scaler.go index 7e8323ee098..82ecacda765 100644 --- a/pkg/scalers/postgresql_scaler.go +++ b/pkg/scalers/postgresql_scaler.go @@ -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 } From cdd8eaa0eb352a9fb914cb2695056c68fd434a7c Mon Sep 17 00:00:00 2001 From: Tim Sandquist Date: Mon, 3 Jan 2022 06:45:50 -0600 Subject: [PATCH 2/3] Assign PostgreSQL userName to correct attribute (#2432) Signed-off-by: Tim Sandquist --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1cf9803c9f1..379d90b112a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ - Graphite Scaler: use the latest datapoint returned, not the earliest ([#2365](https://github.com/kedacore/keda/pull/2365)) - Kubernetes Workload Scaler: ignore terminated pods ([#2384](https://github.com/kedacore/keda/pull/2384)) - `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)) - TODO ([#XXX](https://github.com/kedacore/keda/pull/XXX)) From 2316733aea04a8b2814771fdd697db381cda3257 Mon Sep 17 00:00:00 2001 From: Tim Sandquist Date: Mon, 3 Jan 2022 07:21:22 -0600 Subject: [PATCH 3/3] Fix changelog text Signed-off-by: Tim Sandquist --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 379d90b112a..8a58af6a356 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,7 +30,7 @@ - Graphite Scaler: use the latest datapoint returned, not the earliest ([#2365](https://github.com/kedacore/keda/pull/2365)) - Kubernetes Workload Scaler: ignore terminated pods ([#2384](https://github.com/kedacore/keda/pull/2384)) - `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)) +- PostgreSQL Scaler: Assign PostgreSQL `userName` to correct attribute ([#2432](https://github.com/kedacore/keda/pull/2432)) - TODO ([#XXX](https://github.com/kedacore/keda/pull/XXX))