diff --git a/CHANGELOG.md b/CHANGELOG.md index fbb975b3ead..5926be52e44 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -82,6 +82,7 @@ Here is an overview of all new **experimental** features: - **Kafka Scaler**: Add support for Kerberos authentication (SASL / GSSAPI) ([#4836](https://github.com/kedacore/keda/issues/4836)) - **Prometheus Metrics**: Introduce paused ScaledObjects in Prometheus metrics ([#4430](https://github.com/kedacore/keda/issues/4430)) - **Pulsar Scaler**: support endpointParams in pulsar oauth ([#5069](https://github.com/kedacore/keda/issues/5069)) +- **Prometheus Scaler**: Provide scaler for Amazon managed service for Prometheus ([#2214](https://github.com/kedacore/keda/issues/2214)) ### Fixes diff --git a/pkg/scalers/aws_sigv4.go b/pkg/scalers/aws_sigv4.go index 8a449b9ef1d..53174a8ad78 100644 --- a/pkg/scalers/aws_sigv4.go +++ b/pkg/scalers/aws_sigv4.go @@ -33,7 +33,6 @@ var ( ) func (rt *roundTripper) RoundTrip(req *http.Request) (*http.Response, error) { - cred, err := rt.client.Options().Credentials.Retrieve(req.Context()) if err != nil { return nil, err diff --git a/tests/scalers/aws/aws_managed_prometheus_pod_identity/aws_managed_prometheus_pod_identity_test.go b/tests/scalers/aws/aws_managed_prometheus_pod_identity/aws_managed_prometheus_pod_identity_test.go index d5272b1330d..bf819617602 100644 --- a/tests/scalers/aws/aws_managed_prometheus_pod_identity/aws_managed_prometheus_pod_identity_test.go +++ b/tests/scalers/aws/aws_managed_prometheus_pod_identity/aws_managed_prometheus_pod_identity_test.go @@ -46,7 +46,7 @@ metadata: namespace: {{.TestNamespace}} spec: podIdentity: - provider: aws-eks + provider: aws ` deploymentTemplate = ` apiVersion: apps/v1