Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions charts/metrics-agent/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 2.14.9
version: 2.14.10

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion: 2.14.9
appVersion: 2.14.10
2 changes: 1 addition & 1 deletion charts/metrics-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ uploadRegion: "us-west-2"

image:
name: cloudability/metrics-agent
tag: 2.14.9
tag: 2.14.10
pullPolicy: Always

imagePullSecrets: []
Expand Down
3 changes: 3 additions & 0 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const MEBaseURL string = "https://metrics-collector-me.cloudability.com/metricsa
const INBaseURL string = "https://metrics-collector-in.cloudability.com/metricsample"
const JPBaseURL string = "https://metrics-collector-jp.cloudability.com/metricsample"
const SGBaseURL string = "https://metrics-collector-sg.cloudability.com/metricsample"
const CABaseURL string = "https://metrics-collector-ca.cloudability.com/metricsample"
const GovBaseURL string = "https://metrics-collector-production-gov.cloudability.com/metricsample"
const StagingBaseURL string = "https://metrics-collector-staging.cloudability.com/metricsample"
const defaultTimeout = 1 * time.Minute
Expand Down Expand Up @@ -435,6 +436,8 @@ func GetUploadURLByRegion(region string) string {
return INBaseURL
case "ap-southeast-1":
return SGBaseURL
case "ca-central-1":
return CABaseURL
case "us-gov-west-1":
return GovBaseURL
case "us-west-2-staging":
Expand Down
4 changes: 4 additions & 0 deletions client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,10 @@ func Test_getUploadURLByRegion(t *testing.T) {
if uploadURL != client.SGBaseURL {
t.Error("SG URL was not generated correctly")
}
uploadURL = client.GetUploadURLByRegion("ca-central-1")
if uploadURL != client.CABaseURL {
t.Error("CA URL was not generated correctly")
}
uploadURL = client.GetUploadURLByRegion("us-gov-west-1")
if uploadURL != client.GovBaseURL {
t.Error("Gov URL was not generated correctly")
Expand Down
2 changes: 1 addition & 1 deletion version/version.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package version

// VERSION is the current version of the agent
var VERSION = "2.14.9"
var VERSION = "2.14.10"