Skip to content
Snippets Groups Projects
Commit 6c5a419e authored by Jeremy Scott's avatar Jeremy Scott Committed by Derek Su
Browse files

Add hostPath case statement for creating persistent volume source method

parent b34e8e44
Branches
Tags
No related merge requests found
......@@ -661,6 +661,14 @@ func createPersistentVolumeSource(volumeType string, path string) v1.PersistentV
Path: path,
},
}
case "hostpath":
hostPathType := v1.HostPathDirectoryOrCreate
pvs = v1.PersistentVolumeSource{
HostPath: &v1.HostPathVolumeSource{
Path: path,
Type: &hostPathType,
},
}
default:
hostPathType := v1.HostPathDirectoryOrCreate
pvs = v1.PersistentVolumeSource{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment