1
0
Fork 0
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:
NoSkillGirl 2021-09-22 01:51:57 +05:30
parent aba3bad8fc
commit d6e977a34d

View file

@ -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
}