Add extra value validation for matchExpression field in LabelSelector

This commit is contained in:
Manjusaka
2022-01-13 22:10:10 +08:00
committed by Jordan Liggitt
parent aa66cec6fa
commit 0843c4dfca
20 changed files with 419 additions and 78 deletions

View File

@@ -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")