mirror of
https://github.com/kyverno/kyverno.git
synced 2025-04-15 08:46:36 +00:00
644 golangci issues
This commit is contained in:
parent
bc84413f35
commit
710be633a6
1 changed files with 1 additions and 3 deletions
|
@ -166,9 +166,7 @@ func MatchesResourceDescription(resourceRef unstructured.Unstructured, ruleRef k
|
|||
// checking if resource matches the rule
|
||||
if !reflect.DeepEqual(rule.MatchResources.ResourceDescription, kyverno.ResourceDescription{}) {
|
||||
matchErrs := doesResourceMatchConditionBlock(rule.MatchResources.ResourceDescription, rule.MatchResources.UserInfo, admissionInfo, resource)
|
||||
for _, matchErr := range matchErrs {
|
||||
reasonsForFailure = append(reasonsForFailure, matchErr)
|
||||
}
|
||||
reasonsForFailure = append(reasonsForFailure, matchErrs...)
|
||||
} else {
|
||||
reasonsForFailure = append(reasonsForFailure, fmt.Errorf("match block in rule cannot be empty"))
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue