chore: refactor schedulers to work with cluster state snapshot, VolumeScheduler updates state with scheduled volumes

This commit is contained in:
Pavel Sviderski
2025-04-22 20:34:54 +10:00
parent e5957d9d6b
commit fcf164dda1
9 changed files with 120 additions and 85 deletions
+3
View File
@@ -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 == "" {