File tree Expand file tree Collapse file tree 13 files changed +25
-1
lines changed Expand file tree Collapse file tree 13 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -243,6 +243,8 @@ spec:
243
243
type : string
244
244
logical_backup_s3_endpoint :
245
245
type : string
246
+ logical_backup_s3_region :
247
+ type : string
246
248
logical_backup_s3_secret_access_key :
247
249
type : string
248
250
logical_backup_s3_sse :
Original file line number Diff line number Diff line change @@ -204,6 +204,8 @@ configLogicalBackup:
204
204
logical_backup_s3_access_key_id : " "
205
205
# S3 bucket to store backup results
206
206
logical_backup_s3_bucket : " my-bucket-url"
207
+ # S3 region of bucket
208
+ logical_backup_s3_region : " "
207
209
# S3 endpoint url when not using AWS
208
210
logical_backup_s3_endpoint : " "
209
211
# S3 Secret Access Key
Original file line number Diff line number Diff line change @@ -195,6 +195,8 @@ configLogicalBackup:
195
195
logical_backup_s3_access_key_id : " "
196
196
# S3 bucket to store backup results
197
197
logical_backup_s3_bucket : " my-bucket-url"
198
+ # S3 region of bucket
199
+ logical_backup_s3_region : " "
198
200
# S3 endpoint url when not using AWS
199
201
logical_backup_s3_endpoint : " "
200
202
# S3 Secret Access Key
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ function aws_upload {
40
40
41
41
[[ ! -z " $EXPECTED_SIZE " ]] && args+=(" --expected-size=$EXPECTED_SIZE " )
42
42
[[ ! -z " $LOGICAL_BACKUP_S3_ENDPOINT " ]] && args+=(" --endpoint-url=$LOGICAL_BACKUP_S3_ENDPOINT " )
43
+ [[ ! -z " $LOGICAL_BACKUP_S3_REGION " ]] && args+=(" --region=$LOGICAL_BACKUP_S3_REGION " )
43
44
[[ ! -z " $LOGICAL_BACKUP_S3_SSE " ]] && args+=(" --sse=$LOGICAL_BACKUP_S3_SSE " )
44
45
45
46
aws s3 cp - " $PATH_TO_BACKUP " " ${args[@]// \' / } "
Original file line number Diff line number Diff line change @@ -461,8 +461,11 @@ grouped under the `logical_backup` key.
461
461
S3 bucket to store backup results. The bucket has to be present and
462
462
accessible by Postgres pods. Default: empty.
463
463
464
+ * ** logical_backup_s3_region**
465
+ Specifies the region of the bucket which is required with some non-AWS S3 storage services. The default is empty.
466
+
464
467
* ** logical_backup_s3_endpoint**
465
- When using non-AWS S3 storage, endpoint can be set as a ENV variable.
468
+ When using non-AWS S3 storage, endpoint can be set as a ENV variable. The default is empty.
466
469
467
470
* ** logical_backup_s3_sse**
468
471
Specify server side encription that S3 storage is using. If empty string
Original file line number Diff line number Diff line change 40
40
# logical_backup_docker_image: "registry.opensource.zalan.do/acid/logical-backup"
41
41
# logical_backup_s3_access_key_id: ""
42
42
# logical_backup_s3_bucket: "my-bucket-url"
43
+ # logical_backup_s3_region: ""
43
44
# logical_backup_s3_endpoint: ""
44
45
# logical_backup_s3_secret_access_key: ""
45
46
# logical_backup_s3_sse: "AES256"
Original file line number Diff line number Diff line change @@ -219,6 +219,8 @@ spec:
219
219
type : string
220
220
logical_backup_s3_endpoint :
221
221
type : string
222
+ logical_backup_s3_region :
223
+ type : string
222
224
logical_backup_s3_secret_access_key :
223
225
type : string
224
226
logical_backup_s3_sse :
Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ configuration:
88
88
# logical_backup_s3_access_key_id: ""
89
89
logical_backup_s3_bucket : " my-bucket-url"
90
90
# logical_backup_s3_endpoint: ""
91
+ # logical_backup_s3_region: ""
91
92
# logical_backup_s3_secret_access_key: ""
92
93
logical_backup_s3_sse : " AES256"
93
94
logical_backup_schedule : " 30 00 * * *"
Original file line number Diff line number Diff line change @@ -909,6 +909,9 @@ var OperatorConfigCRDResourceValidation = apiextv1beta1.CustomResourceValidation
909
909
"logical_backup_s3_endpoint" : {
910
910
Type : "string" ,
911
911
},
912
+ "logical_backup_s3_region" : {
913
+ Type : "string" ,
914
+ },
912
915
"logical_backup_s3_secret_access_key" : {
913
916
Type : "string" ,
914
917
},
Original file line number Diff line number Diff line change @@ -157,6 +157,7 @@ type OperatorLogicalBackupConfiguration struct {
157
157
Schedule string `json:"logical_backup_schedule,omitempty"`
158
158
DockerImage string `json:"logical_backup_docker_image,omitempty"`
159
159
S3Bucket string `json:"logical_backup_s3_bucket,omitempty"`
160
+ S3Region string `json:"logical_backup_s3_region,omitempty"`
160
161
S3Endpoint string `json:"logical_backup_s3_endpoint,omitempty"`
161
162
S3AccessKeyID string `json:"logical_backup_s3_access_key_id,omitempty"`
162
163
S3SecretAccessKey string `json:"logical_backup_s3_secret_access_key,omitempty"`
Original file line number Diff line number Diff line change @@ -1589,6 +1589,10 @@ func (c *Cluster) generateLogicalBackupPodEnvVars() []v1.EnvVar {
1589
1589
Name : "LOGICAL_BACKUP_S3_BUCKET" ,
1590
1590
Value : c .OpConfig .LogicalBackup .LogicalBackupS3Bucket ,
1591
1591
},
1592
+ {
1593
+ Name : "LOGICAL_BACKUP_S3_REGION" ,
1594
+ Value : c .OpConfig .LogicalBackup .LogicalBackupS3Region ,
1595
+ },
1592
1596
{
1593
1597
Name : "LOGICAL_BACKUP_S3_ENDPOINT" ,
1594
1598
Value : c .OpConfig .LogicalBackup .LogicalBackupS3Endpoint ,
Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ func (c *Controller) importConfigurationFromCRD(fromCRD *acidv1.OperatorConfigur
106
106
result .LogicalBackupSchedule = fromCRD .LogicalBackup .Schedule
107
107
result .LogicalBackupDockerImage = fromCRD .LogicalBackup .DockerImage
108
108
result .LogicalBackupS3Bucket = fromCRD .LogicalBackup .S3Bucket
109
+ result .LogicalBackupS3Region = fromCRD .LogicalBackup .S3Region
109
110
result .LogicalBackupS3Endpoint = fromCRD .LogicalBackup .S3Endpoint
110
111
result .LogicalBackupS3AccessKeyID = fromCRD .LogicalBackup .S3AccessKeyID
111
112
result .LogicalBackupS3SecretAccessKey = fromCRD .LogicalBackup .S3SecretAccessKey
Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ type LogicalBackup struct {
76
76
LogicalBackupSchedule string `name:"logical_backup_schedule" default:"30 00 * * *"`
77
77
LogicalBackupDockerImage string `name:"logical_backup_docker_image" default:"registry.opensource.zalan.do/acid/logical-backup"`
78
78
LogicalBackupS3Bucket string `name:"logical_backup_s3_bucket" default:""`
79
+ LogicalBackupS3Region string `name:"logical_backup_s3_region" default:""`
79
80
LogicalBackupS3Endpoint string `name:"logical_backup_s3_endpoint" default:""`
80
81
LogicalBackupS3AccessKeyID string `name:"logical_backup_s3_access_key_id" default:""`
81
82
LogicalBackupS3SecretAccessKey string `name:"logical_backup_s3_secret_access_key" default:""`
You can’t perform that action at this time.
0 commit comments