1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-31 03:45:17 +00:00

added namespace label in context (#1644)

Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
This commit is contained in:
Pooja Singh 2021-02-26 10:22:53 +05:30 committed by GitHub
parent 0d1f0b5897
commit 070f13783f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,6 +62,7 @@ func applyPolicy(policy kyverno.ClusterPolicy, resource unstructured.Unstructure
ResourceCache: resCache,
JSONContext: ctx,
Client: client,
NamespaceLabels: namespaceLabels,
}
engineResponseValidation = engine.Validate(policyCtx)