Skip to content

Commit

Permalink
feat(scaler): Update the HTTP and HTTPS endpoint to use natsStreaming…
Browse files Browse the repository at this point in the history
…HTTPProtocol/natsStreamingHTTPSProtocol

Issue: kedacore#6448

Signed-off-by: Chirag Bhatia <[email protected]>
  • Loading branch information
chiragbhatia8 committed Jan 9, 2025
1 parent 9a03919 commit 4a7322a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/scalers/artemis_scaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,10 @@ func getAPIParameters(meta artemisMetadata) (artemisMetadata, error) {
}

func (s *artemisScaler) getMonitoringEndpoint() string {
scheme := "http"
scheme := natsStreamingHTTPProtocol

if s.metadata.TLS {
scheme = "https"
scheme = natsStreamingHTTPSProtocol
}
replacer := strings.NewReplacer(
"<<managementEndpoint>>", fmt.Sprintf("%s://%s", scheme, s.metadata.ManagementEndpoint),
Expand Down

0 comments on commit 4a7322a

Please sign in to comment.