diff --git a/charts/metrics-agent/Chart.yaml b/charts/metrics-agent/Chart.yaml index e5ecd47..7432183 100644 --- a/charts/metrics-agent/Chart.yaml +++ b/charts/metrics-agent/Chart.yaml @@ -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 diff --git a/charts/metrics-agent/values.yaml b/charts/metrics-agent/values.yaml index 3516481..959b349 100644 --- a/charts/metrics-agent/values.yaml +++ b/charts/metrics-agent/values.yaml @@ -30,7 +30,7 @@ uploadRegion: "us-west-2" image: name: cloudability/metrics-agent - tag: 2.14.9 + tag: 2.14.10 pullPolicy: Always imagePullSecrets: [] diff --git a/client/client.go b/client/client.go index be3c92a..d05de3f 100644 --- a/client/client.go +++ b/client/client.go @@ -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 @@ -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": diff --git a/client/client_test.go b/client/client_test.go index 284db11..0db308d 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -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") diff --git a/version/version.go b/version/version.go index fd44d91..5935225 100644 --- a/version/version.go +++ b/version/version.go @@ -1,4 +1,4 @@ package version // VERSION is the current version of the agent -var VERSION = "2.14.9" +var VERSION = "2.14.10"