File tree 5 files changed +11
-4
lines changed
5 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ type: application
14
14
15
15
# This is the chart version. This version number should be incremented each time you make changes
16
16
# to the chart and its templates, including the app version.
17
- version : 2.11.21
17
+ version : 2.11.22
18
18
19
19
# This is the version number of the application being deployed. This version number should be
20
20
# incremented each time you make changes to the application.
21
- appVersion : 2.11.21
21
+ appVersion : 2.11.22
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ pollInterval: 180
24
24
25
25
image :
26
26
name : cloudability/metrics-agent
27
- tag : 2.11.21
27
+ tag : 2.11.22
28
28
pullPolicy : Always
29
29
30
30
imagePullSecrets : []
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ import (
32
32
33
33
const DefaultBaseURL string = "https://metrics-collector.cloudability.com/metricsample"
34
34
const EUBaseURL string = "https://metrics-collector-eu.cloudability.com/metricsample"
35
+ const AUBaseURL string = "https://metrics-collector-au.cloudability.com/metricsample"
35
36
const defaultTimeout = 1 * time .Minute
36
37
const defaultMaxRetries = 5
37
38
@@ -415,6 +416,8 @@ func GetUploadURLByRegion(region string) string {
415
416
switch region {
416
417
case "eu-central-1" :
417
418
return EUBaseURL
419
+ case "ap-southeast-2" :
420
+ return AUBaseURL
418
421
case "us-west-2" :
419
422
return DefaultBaseURL
420
423
default :
Original file line number Diff line number Diff line change @@ -545,6 +545,10 @@ func Test_getUploadURLByRegion(t *testing.T) {
545
545
if uploadURL != client .EUBaseURL {
546
546
t .Error ("EU URL was not generated correctly" )
547
547
}
548
+ uploadURL = client .GetUploadURLByRegion ("ap-southeast-2" )
549
+ if uploadURL != client .AUBaseURL {
550
+ t .Error ("AU URL was not generated correctly" )
551
+ }
548
552
// unsupported region should default to us-west-2 url generation
549
553
uploadURL = client .GetUploadURLByRegion ("my-unsupported-region-1" )
550
554
if uploadURL != client .DefaultBaseURL {
Original file line number Diff line number Diff line change 1
1
package version
2
2
3
3
// VERSION is the current version of the agent
4
- var VERSION = "2.11.21 "
4
+ var VERSION = "2.11.22 "
You can’t perform that action at this time.
0 commit comments