fix: Set volume driver name to "local" if not specified (#219)

This commit is contained in:
Justin Bradford
2025-12-15 17:50:36 +10:00
committed by GitHub
parent 796363f23c
commit 20cdcdf917
2 changed files with 71 additions and 0 deletions
+3
View File
@@ -83,6 +83,9 @@ func (v *VolumeSpec) SetDefaults() VolumeSpec {
if spec.VolumeOptions.Name == "" {
spec.VolumeOptions.Name = spec.Name
}
if spec.VolumeOptions.Driver != nil && spec.VolumeOptions.Driver.Name == "" {
spec.VolumeOptions.Driver.Name = VolumeDriverLocal
}
}
// TODO: set explicit default values for Propagation and Recursive for bind mounts?