Implicit filesystem name from volume name. OBJECTSTORE env var.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-05-25 15:40:35 +02:00
parent 9eeed14937
commit bb7da9ab6d
2 changed files with 8 additions and 0 deletions

View File

@@ -37,6 +37,13 @@
"value"
]
},
{
"name": "OBJECTSTORE",
"value": "",
"settable": [
"value"
]
},
{
"name": "ENDPOINT",
"value": "",

View File

@@ -57,6 +57,7 @@ func (d ofsDriver) Create(r *volume.CreateRequest) error {
v.volume = &volume.Volume{Name: r.Name, Mountpoint: filepath.Join(volume.DefaultDockerRootDirectory, "objectivefs", r.Name), CreatedAt: time.Now().Format(time.RFC3339Nano)}
v.use = make(map[string]bool)
v.opts = "auto"
v.fs = r.Name
for key, val := range r.Options {
switch key {
case "fs":