func removeDuplicateAccessModes(modes []v1.PersistentVolumeAccessMode) []v1.PersistentVolumeAccessMode {
	accessModes := []v1.PersistentVolumeAccessMode{}
	for _, m := range modes {
		if !containsAccessMode(accessModes, m) {
			accessModes = append(accessModes, m)
		}
	}
	return accessModes
}
// removeDuplicateAccessModes returns an array of access modes without any duplicates
removeDuplicateAccessModes returns an array of access modes without any duplicates
// removeDuplicateAccessModes returns an array of access modes without any duplicates
func removeDuplicateAccessModes(modes []v1.PersistentVolumeAccessMode) []v1.PersistentVolumeAccessMode {
	accessModes := []v1.PersistentVolumeAccessMode{}
	for _, m := range modes {
		if !containsAccessMode(accessModes, m) {
			accessModes = append(accessModes, m)
		}
	}
	return accessModes
}
func removeDuplicateAccessModes ( modes [ ] v1 . PersistentVolumeAccessMode ) [ ] v1 . PersistentVolumeAccessMode { accessModes := [ ] v1 . PersistentVolumeAccessMode { } for _ , m := range modes { if ! containsAccessMode ( accessModes , m ) { accessModes = append ( accessModes , m ) } } return accessModes }
removeDuplicateAccessModes returns an array of access modes without any duplicates
removeDuplicateAccessModes returns an array of access modes without any duplicates