Skip to content

Commit b974e96

Browse files
Merge pull request #249 from cloudability/cldycon-4293
update for au
2 parents 53a21dd + a3e6522 commit b974e96

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed

charts/metrics-agent/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ type: application
1414

1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
17-
version: 2.11.21
17+
version: 2.11.22
1818

1919
# This is the version number of the application being deployed. This version number should be
2020
# incremented each time you make changes to the application.
21-
appVersion: 2.11.21
21+
appVersion: 2.11.22

charts/metrics-agent/values.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pollInterval: 180
2424

2525
image:
2626
name: cloudability/metrics-agent
27-
tag: 2.11.21
27+
tag: 2.11.22
2828
pullPolicy: Always
2929

3030
imagePullSecrets: []

client/client.go

+3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import (
3232

3333
const DefaultBaseURL string = "https://metrics-collector.cloudability.com/metricsample"
3434
const EUBaseURL string = "https://metrics-collector-eu.cloudability.com/metricsample"
35+
const AUBaseURL string = "https://metrics-collector-au.cloudability.com/metricsample"
3536
const defaultTimeout = 1 * time.Minute
3637
const defaultMaxRetries = 5
3738

@@ -415,6 +416,8 @@ func GetUploadURLByRegion(region string) string {
415416
switch region {
416417
case "eu-central-1":
417418
return EUBaseURL
419+
case "ap-southeast-2":
420+
return AUBaseURL
418421
case "us-west-2":
419422
return DefaultBaseURL
420423
default:

client/client_test.go

+4
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,10 @@ func Test_getUploadURLByRegion(t *testing.T) {
545545
if uploadURL != client.EUBaseURL {
546546
t.Error("EU URL was not generated correctly")
547547
}
548+
uploadURL = client.GetUploadURLByRegion("ap-southeast-2")
549+
if uploadURL != client.AUBaseURL {
550+
t.Error("AU URL was not generated correctly")
551+
}
548552
// unsupported region should default to us-west-2 url generation
549553
uploadURL = client.GetUploadURLByRegion("my-unsupported-region-1")
550554
if uploadURL != client.DefaultBaseURL {

version/version.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
package version
22

33
// VERSION is the current version of the agent
4-
var VERSION = "2.11.21"
4+
var VERSION = "2.11.22"

0 commit comments

Comments
 (0)