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:
parent
f52ea45331
commit
06c27023cb
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue