mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
fix 869
This commit is contained in:
parent
ecbc14d559
commit
bc981f9a11
2 changed files with 2 additions and 5 deletions
|
@ -35,8 +35,8 @@ func (pc *PolicyController) processExistingResources(policy kyverno.ClusterPolic
|
|||
|
||||
// skip reporting violation on pod which has annotation pod-policies.kyverno.io/autogen-applied
|
||||
ann := policy.GetAnnotations()
|
||||
if _, ok := ann[engine.PodTemplateAnnotation]; ok {
|
||||
if ann[engine.PodTemplateAnnotation] != "none" {
|
||||
if annValue, ok := ann[engine.PodControllersAnnotation]; ok {
|
||||
if annValue != "none" {
|
||||
if skipPodApplication(resource, logger) {
|
||||
continue
|
||||
}
|
||||
|
|
|
@ -45,9 +45,6 @@ func (ws *WebhookServer) HandleMutation(
|
|||
|
||||
policyContext.Policy = policy
|
||||
engineResponse := engine.Mutate(policyContext)
|
||||
if engineResponse.PolicyResponse.RulesAppliedCount <= 0 {
|
||||
continue
|
||||
}
|
||||
|
||||
engineResponses = append(engineResponses, engineResponse)
|
||||
ws.statusListener.Send(mutateStats{resp: engineResponse})
|
||||
|
|
Loading…
Add table
Reference in a new issue