From 070f13783ff415a9c7315b55b0e51fad10acbf34 Mon Sep 17 00:00:00 2001 From: Pooja Singh <36136335+NoSkillGirl@users.noreply.github.com> Date: Fri, 26 Feb 2021 10:22:53 +0530 Subject: [PATCH] added namespace label in context (#1644) Signed-off-by: NoSkillGirl --- pkg/policy/apply.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/policy/apply.go b/pkg/policy/apply.go index bd48da69b4..258b1c1834 100644 --- a/pkg/policy/apply.go +++ b/pkg/policy/apply.go @@ -62,6 +62,7 @@ func applyPolicy(policy kyverno.ClusterPolicy, resource unstructured.Unstructure ResourceCache: resCache, JSONContext: ctx, Client: client, + NamespaceLabels: namespaceLabels, } engineResponseValidation = engine.Validate(policyCtx)