Add extra value validation for matchExpression field in LabelSelector
This commit is contained in:

committed by
Jordan Liggitt

parent
aa66cec6fa
commit
0843c4dfca
@@ -2179,7 +2179,7 @@ func TestValidateCSIStorageCapacity(t *testing.T) {
|
||||
|
||||
for name, scenario := range scenarios {
|
||||
t.Run(name, func(t *testing.T) {
|
||||
errs := ValidateCSIStorageCapacity(scenario.capacity)
|
||||
errs := ValidateCSIStorageCapacity(scenario.capacity, CSIStorageCapacityValidateOptions{false})
|
||||
if len(errs) == 0 && scenario.isExpectedFailure {
|
||||
t.Errorf("Unexpected success")
|
||||
}
|
||||
|
Reference in New Issue
Block a user