mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 11:03:34 +00:00
chore: refactor schedulers to work with cluster state snapshot, VolumeScheduler updates state with scheduled volumes
This commit is contained in:
@@ -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