Use volume ID as a prefix if the bucket is fixed in the storage class
With this, each volume will get its own prefix within the bucket if it is configured in the storage class. This also ensures backwards compatibility with older volumes that have been created in earlier versions of csi-s3.
This commit is contained in:
parent
68ef284b9b
commit
26cb1d95e8
17 changed files with 195 additions and 105 deletions
pkg/driver
|
@ -32,13 +32,6 @@ type driver struct {
|
|||
cs *controllerServer
|
||||
}
|
||||
|
||||
type s3Volume struct {
|
||||
VolName string `json:"volName"`
|
||||
VolID string `json:"volID"`
|
||||
VolSize int64 `json:"volSize"`
|
||||
VolPath string `json:"volPath"`
|
||||
}
|
||||
|
||||
var (
|
||||
vendorVersion = "v1.1.1"
|
||||
driverName = "ch.ctrox.csi.s3-driver"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue