1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-15 17:51:20 +00:00

Fixed issue with nested anchors

This commit is contained in:
Denis Belyshev 2019-06-13 17:33:58 +03:00
parent 9bacfe4363
commit ed7dfb63d6

View file

@ -144,7 +144,6 @@ func validateArray(resourceArray, patternArray []interface{}, path string) resul
// and then validates each map due to the pattern
func validateArrayOfMaps(resourceMapArray []interface{}, patternMap map[string]interface{}, path string) result.RuleApplicationResult {
anchor, pattern := getAnchorFromMap(patternMap)
delete(patternMap, anchor)
handler := CreateAnchorHandler(anchor, pattern, path)
return handler.Handle(resourceMapArray, patternMap)