mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
658 untested changes
This commit is contained in:
parent
3343d73b76
commit
1da17a58f5
1 changed files with 0 additions and 4 deletions
|
@ -135,10 +135,6 @@ func validateMatchedResourceDescription(rd kyverno.ResourceDescription) (string,
|
||||||
return "", fmt.Errorf("match resources not specified")
|
return "", fmt.Errorf("match resources not specified")
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(rd.Kinds) == 0 {
|
|
||||||
return "match", fmt.Errorf("kind is mandatory")
|
|
||||||
}
|
|
||||||
|
|
||||||
if err := validateResourceDescription(rd); err != nil {
|
if err := validateResourceDescription(rd); err != nil {
|
||||||
return "match", err
|
return "match", err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue