mirror of
https://github.com/containers/podman.git
synced 2025-06-25 12:20:42 +08:00
Updated error message for supported VolumeSource types
Signed-off-by: Andrew Block <andy.block@gmail.com>
This commit is contained in:
@ -245,7 +245,7 @@ func VolumeFromSource(volumeSource v1.VolumeSource, configMaps []v1.ConfigMap, s
|
|||||||
case volumeSource.EmptyDir != nil:
|
case volumeSource.EmptyDir != nil:
|
||||||
return VolumeFromEmptyDir(volumeSource.EmptyDir, volName)
|
return VolumeFromEmptyDir(volumeSource.EmptyDir, volName)
|
||||||
default:
|
default:
|
||||||
return nil, errors.New("HostPath, ConfigMap, EmptyDir, and PersistentVolumeClaim are currently the only supported VolumeSource")
|
return nil, errors.New("HostPath, ConfigMap, EmptyDir, Secret, and PersistentVolumeClaim are currently the only supported VolumeSource")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user