mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-30 19:35:06 +00:00
updated logic for key in resources
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
This commit is contained in:
parent
aba3bad8fc
commit
d6e977a34d
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ func getSortedNestedAnchorResource(resources map[string]interface{}) *list.List
|
|||
fmt.Println("resources: ", resources)
|
||||
for k, v := range resources {
|
||||
fmt.Println("k: ", k, " v:", v)
|
||||
if commonAnchors.IsConditionAnchor(k) || commonAnchors.IsExistenceAnchor(k) || commonAnchors.IsEqualityAnchor(k) || commonAnchors.IsNegationAnchor(k) || commonAnchors.IsGlobalAnchor(k) {
|
||||
if commonAnchors.IsGlobalAnchor(k) {
|
||||
sortedResourceKeys.PushFront(k)
|
||||
continue
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue