Skip to content

Commit c5ed89d

Browse files
add parameter addressing_model for s3_compatible backup (#820)
1 parent 2f4a593 commit c5ed89d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

internal/resource/obtenantbackuppolicy/utils.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,11 @@ func (m *ObTenantBackupPolicyManager) getDestPath(dest apitypes.BackupDestinatio
135135
destPath += ("&appid=" + string(secret.Data["appId"]))
136136
} else if dest.Type == constants.BackupDestTypeS3 {
137137
destPath += ("&s3_region=" + string(secret.Data["s3Region"]))
138+
} else if dest.Type == constants.BackupDestTypeS3Compatible {
139+
addressingModel, ok := secret.Data["addressingModel"]
140+
if ok {
141+
destPath += ("&addressing_model=" + string(addressingModel))
142+
}
138143
}
139144
return destPath
140145
}

make/dashboard.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ dashboard-clean: ## Clean build
4141
.PHONY: dashboard-dep-install
4242
dashboard-dep-install: ## Install dependencies for oceanbase-dashboard
4343
@if [ -z "$(shell command -v swag)" ]; then \
44-
go install github.com/swaggo/swag/cmd/swag@latest; \
44+
go install github.com/swaggo/swag/cmd/swag@v1.16.3; \
4545
fi
4646
@if [ -z "$(shell command -v go-bindata)" ]; then \
4747
go install github.com/go-bindata/go-bindata/...@v3.1.2+incompatible; \

0 commit comments

Comments
 (0)