1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-28 02:18:15 +00:00

issue fixed (#2417)

Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
This commit is contained in:
Pooja Singh 2021-09-21 16:16:47 +05:30 committed by GitHub
parent f52ea45331
commit 06c27023cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,7 +32,10 @@ func GetResources(policies []*v1.ClusterPolicy, resourcePaths []string, dClient
for _, policy := range policies {
for _, rule := range policy.Spec.Rules {
resourceTypesMap = getKindsFromPolicy(rule)
resourceTypesInRule := getKindsFromPolicy(rule)
for resourceKind := range resourceTypesInRule {
resourceTypesMap[resourceKind] = true
}
}
}