Updated error message for supported VolumeSource types
Signed-off-by: Andrew Block <andy.block@gmail.com>
This commit is contained in:
parent
7c95a5df92
commit
81a3f7cb80
|
|
@ -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")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue