mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-06 13:18:58 +00:00
chore: refactor schedulers to work with cluster state snapshot, VolumeScheduler updates state with scheduled volumes
This commit is contained in:
1 parent
e5957d9d6b
commit
fcf164dda1
9 files changed
+120
-85
No files matched your search
@@ -125,6 +125,9 @@ func (v *VolumeSpec) MatchesDockerVolume(vol volume.Volume) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// The volume spec may not define the driver which means to use the default driver if creating a new volume
|
||||
// or accept any driver when mounting an existing volume. If the driver is specified in the spec, the spec's
|
||||
// driver and options must match the volume's driver and options.
|
||||
if spec.VolumeOptions.Driver != nil {
|
||||
volDriver := vol.Driver
|
||||
if volDriver == "" {
|
||||
|
||||
Reference in new issue
Block a user