func GetAccessModesFromString(modes string) []v1.PersistentVolumeAccessMode {
	strmodes := strings.Split(modes, ",")
	accessModes := []v1.PersistentVolumeAccessMode{}
	for _, s := range strmodes {
		s = strings.Trim(s, " ")
		switch {
		case s == "RWO":
			accessModes = append(accessModes, v1.ReadWriteOnce)
		case s == "ROX":
			accessModes = append(accessModes, v1.ReadOnlyMany)
		case s == "RWX":
			accessModes = append(accessModes, v1.ReadWriteMany)
		}
	}
	return accessModes
}
// GetAccessModesFromString returns an array of AccessModes from a string created by GetAccessModesAsString
GetAccessModesFromString returns an array of AccessModes from a string created by GetAccessModesAsString
// GetAccessModesFromString returns an array of AccessModes from a string created by GetAccessModesAsString
func GetAccessModesFromString(modes string) []v1.PersistentVolumeAccessMode {
	strmodes := strings.Split(modes, ",")
	accessModes := []v1.PersistentVolumeAccessMode{}
	for _, s := range strmodes {
		s = strings.Trim(s, " ")
		switch {
		case s == "RWO":
			accessModes = append(accessModes, v1.ReadWriteOnce)
		case s == "ROX":
			accessModes = append(accessModes, v1.ReadOnlyMany)
		case s == "RWX":
			accessModes = append(accessModes, v1.ReadWriteMany)
		}
	}
	return accessModes
}
func GetAccessModesFromString ( modes string ) [ ] v1 . PersistentVolumeAccessMode { strmodes := strings . Split ( modes , " " ) accessModes := [ ] v1 . PersistentVolumeAccessMode { } for _ , s := range strmodes { s = strings . Trim ( s , " " ) switch { case s == " " : accessModes = append ( accessModes , v1 . ReadWriteOnce ) case s == " " : accessModes = append ( accessModes , v1 . ReadOnlyMany ) case s == " " : accessModes = append ( accessModes , v1 . ReadWriteMany ) } } return accessModes }
GetAccessModesFromString returns an array of AccessModes from a string created by GetAccessModesAsString
GetAccessModesFromString returns an array of AccessModes from a string created by GetAccessModesAsString