Skip to content

Commit c987ee1

Browse files
author
Emruz Hossain
authored
Pass region flag in the built-in functions (#1363)
Signed-off-by: hossainemruz <emruz@appscode.com>
1 parent fc2e7fb commit c987ee1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/util/crds.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ func updateStatusFunction(image docker.Docker) *api_v1beta1.Function {
105105
"--provider=${REPOSITORY_PROVIDER:=}",
106106
"--bucket=${REPOSITORY_BUCKET:=}",
107107
"--endpoint=${REPOSITORY_ENDPOINT:=}",
108+
"--region=${REPOSITORY_REGION:=}",
108109
"--path=${REPOSITORY_PREFIX:=}",
109110
"--secret-dir=/etc/repository/secret",
110111
"--scratch-dir=/tmp",
@@ -143,6 +144,7 @@ func pvcBackupFunction(image docker.Docker) *api_v1beta1.Function {
143144
"--provider=${REPOSITORY_PROVIDER:=}",
144145
"--bucket=${REPOSITORY_BUCKET:=}",
145146
"--endpoint=${REPOSITORY_ENDPOINT:=}",
147+
"--region=${REPOSITORY_REGION:=}",
146148
"--path=${REPOSITORY_PREFIX:=}",
147149
"--secret-dir=/etc/repository/secret",
148150
"--scratch-dir=/tmp",
@@ -193,6 +195,7 @@ func pvcRestoreFunction(image docker.Docker) *api_v1beta1.Function {
193195
"--provider=${REPOSITORY_PROVIDER:=}",
194196
"--bucket=${REPOSITORY_BUCKET:=}",
195197
"--endpoint=${REPOSITORY_ENDPOINT:=}",
198+
"--region=${REPOSITORY_REGION:=}",
196199
"--path=${REPOSITORY_PREFIX:=}",
197200
"--secret-dir=/etc/repository/secret",
198201
"--scratch-dir=/tmp",

0 commit comments

Comments
 (0)