func GetAccessModesAsString(modes []v1.PersistentVolumeAccessMode) string {
	modes = removeDuplicateAccessModes(modes)
	modesStr := []string{}
	if containsAccessMode(modes, v1.ReadWriteOnce) {
		modesStr = append(modesStr, "RWO")
	}
	if containsAccessMode(modes, v1.ReadOnlyMany) {
		modesStr = append(modesStr, "ROX")
	}
	if containsAccessMode(modes, v1.ReadWriteMany) {
		modesStr = append(modesStr, "RWX")
	}
	return strings.Join(modesStr, ",")
}
// GetAccessModesAsString returns a string representation of an array of access modes.
// modes, when present, are always in the same order: RWO,ROX,RWX.
GetAccessModesAsString returns a string representation of an array of access modes.
modes, when present, are always in the same order: RWO,ROX,RWX.
// GetAccessModesAsString returns a string representation of an array of access modes . // modes when present are always in the same order : RWO ROX RWX .
func GetAccessModesAsString(modes []v1.PersistentVolumeAccessMode) string {
	modes = removeDuplicateAccessModes(modes)
	modesStr := []string{}
	if containsAccessMode(modes, v1.ReadWriteOnce) {
		modesStr = append(modesStr, "RWO")
	}
	if containsAccessMode(modes, v1.ReadOnlyMany) {
		modesStr = append(modesStr, "ROX")
	}
	if containsAccessMode(modes, v1.ReadWriteMany) {
		modesStr = append(modesStr, "RWX")
	}
	return strings.Join(modesStr, ",")
}
func GetAccessModesAsString ( modes [ ] v1 . PersistentVolumeAccessMode ) string { modes = removeDuplicateAccessModes ( modes ) modesStr := [ ] string { } if containsAccessMode ( modes , v1 . ReadWriteOnce ) { modesStr = append ( modesStr , " " ) } if containsAccessMode ( modes , v1 . ReadOnlyMany ) { modesStr = append ( modesStr , " " ) } if containsAccessMode ( modes , v1 . ReadWriteMany ) { modesStr = append ( modesStr , " " ) } return strings . Join ( modesStr , " " ) }
GetAccessModesAsString returns a string representation of an array of access modes.
GetAccessModesAsString returns a string representation of an array of access modes .