Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into feature-support-n…
Browse files Browse the repository at this point in the history
…-nginx-ingresses
  • Loading branch information
Travis Perdue committed Mar 24, 2023
2 parents 7699f3a + 874c188 commit afd6d13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metricproviders/prometheus/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ func NewPrometheusAPI(metric v1alpha1.Metric) (v1.API, error) {
}
//Check if using Amazon Managed Prometheus if true build sigv4 client
if strings.Contains(metric.Provider.Prometheus.Address, "aps-workspaces") {
var cfg *sigv4.SigV4Config
var cfg sigv4.SigV4Config
var next http.RoundTripper
sigv4RoundTripper, err := sigv4.NewSigV4RoundTripper(cfg, next)
sigv4RoundTripper, err := sigv4.NewSigV4RoundTripper(&cfg, next)
if err != nil {
log.Errorf("Error creating SigV4 RoundTripper: %v", err)
return nil, err
Expand Down

0 comments on commit afd6d13

Please sign in to comment.