-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for overriding storage API endpoint for GCS #737
Conversation
35ef2c9
to
29e83b2
Compare
/retest |
/assign @seshachalam-yv |
/assign |
@seshachalam-yv, @ishan16696 You have pull request review open invite, please check |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @shreyas-s-rao for introducing new constants for env vars.
Overall looks good to me.
Nice PR ❤️
/lgtm
/test pull-etcd-druid-e2e-kind |
/test pull-etcd-druid-e2e-kind |
How to categorize this PR?
/area backup
/kind enhancement
/platform gcp
What this PR does / why we need it:
Add support for overriding storage API endpoint for Google GCS provider. This allows users to specify their own storage API endpoint override, such as a regional endpoint, or even a local GCS emulator endpoint. Users need to add a new field
storageAPIEndpoint
in their GCS backup secret, with the value in the formathttp[s]://host[:port]/storage/v1/
, to utilise this feature.Additionally, clean up some of the code and reduce duplicate code:
controllers/compaction.getCompactionJobEnvVar()
andpkg/component/etcd/statefulset.getBackupRestoreEnvVars()
intopkg/utils.GetBackupRestoreContainerEnvVars()
underpkg/utils/envvar.go
, along with associated helper functionspkg/common/constants.go
to the formatEnv*
with correct camel casing, and use inpkg/utils.GetBackupRestoreContainerEnvVars()
Which issue(s) this PR fixes:
Fixes #736
Special notes for your reviewer:
/cc @dguendisch @anveshreddy18
/invite @ishan16696 @seshachalam-yv
Release note: