You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Ensure only one of nimCache, PVC, or EmptyDir is defined
198
204
ifdefinedCount==0 {
199
-
errList=append(errList, field.Required(fldPath, fmt.Sprintf("one of %s, %sor %s, must be defined", fldPath.Child("nimCache"), fldPath.Child("pvc"), fldPath.Child("emptyDir"))))
205
+
errList=append(errList, field.Required(fldPath, fmt.Sprintf("one of %s, %s, %s or %s, must be defined", fldPath.Child("nimCache"), fldPath.Child("pvc"), fldPath.Child("emptyDir"), fldPath.Child("hostPath"))))
200
206
} elseifdefinedCount>1 {
201
-
errList=append(errList, field.Invalid(fldPath, "multiple storage sources defined", fmt.Sprintf("only one of %s, %sor %s must be defined", fldPath.Child("nimCache"), fldPath.Child("pvc"), fldPath.Child("emptyDir"))))
207
+
errList=append(errList, field.Invalid(fldPath, "multiple storage sources defined", fmt.Sprintf("only one of %s, %s, %s or %s must be defined", fldPath.Child("nimCache"), fldPath.Child("pvc"), fldPath.Child("emptyDir"), fldPath.Child("hostPath"))))
202
208
}
203
209
204
210
// If NIMCache is non-nil, NIMCache.Name must not be empty
0 commit comments