Closed bacongobbler closed 8 years ago
can you give me an example of how to test this?
@jchauncey I haven't fleshed this out fully after thinking this through. I'll write out some documentation on how we can test this in a minute. :)
deis/charts#123 is related. It introduced a secret containing user-provided object storage connection / auth details.
All righty, this should be ready to review. Follow the steps in the OP to test.
Can you maybe ask for bucket name instead and derive the URL from the region and the bucket name?
Reason I ask is because what is supposed to become the Deis-wide config for object-storage options currently seems to ask for bucket name instead of URL:
https://github.com/deis/charts/blob/master/deis-dev/tpl/objectstorage.toml#L29-L35
I think I can fix this up in the future to not require S3_URL at which point boto3 will derive the URL from the region and bucket name, but I don't think I can reasonably do that right now. I can open a ticket for that post-beta though!
FYI @kmala volunteered to refactor this PR on top of https://github.com/deis/charts/pull/123 so we don't have users required to configure object storage in two places
closing in favour of #46
If a user wishes to set up an external S3 storage endpoint, they can overwrite the following environment variables:
https://s3-us-west-1.amazonaws.com
)TESTING:
install Deis, and observe that a
db_wal
bucket was created in your S3 region with database backups.closes #33