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

committed by
Jordan Liggitt

parent
aa66cec6fa
commit
0843c4dfca
@@ -330,7 +330,7 @@ type ValidateClusterRoleTest struct {
|
||||
}
|
||||
|
||||
func (v ValidateClusterRoleTest) test(t *testing.T) {
|
||||
errs := ValidateClusterRole(&v.role)
|
||||
errs := ValidateClusterRole(&v.role, ClusterRoleValidationOptions{false})
|
||||
if len(errs) == 0 {
|
||||
if v.wantErr {
|
||||
t.Fatal("expected validation error")
|
||||
|
Reference in New Issue
Block a user