Add etcd s3 config secret implementation
* Move snapshot structs and functions into pkg/etcd/snapshot
* Move s3 client code and functions into pkg/etcd/s3
* Refactor pkg/etcd to track snapshot and s3 moves
* Add support for reading s3 client config from secret
* Add minio client cache, since S3 client configuration can now be
changed at runtime by modifying the secret, and don't want to have to
create a new minio client every time we read config.
* Add tests for pkg/etcd/s3
Signed-off-by:
Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit c36db53e)
Signed-off-by:
Brad Davidson <brad.davidson@rancher.com>
Showing
docs/adrs/etcd-s3-secret.md
0 → 100644
pkg/etcd/s3.go
deleted
100644 → 0
This diff is collapsed.
Click to expand it.
pkg/etcd/s3/config_secret.go
0 → 100644
pkg/etcd/s3/s3.go
0 → 100644
This diff is collapsed.
Click to expand it.
pkg/etcd/s3/s3_test.go
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
pkg/etcd/snapshot/types.go
0 → 100644
Please
register
or
sign in
to comment