From 1195c7dfe925b069e10c416598adaff26304322a Mon Sep 17 00:00:00 2001 From: shivaccuknox <150668714+shivaccuknox@users.noreply.github.com> Date: Sat, 6 Jul 2024 20:17:11 +0530 Subject: [PATCH] - Modifying the trigger for the mutateexisting policy to the Nimbus (#216) Policy. Since it is guaranteed that a nimbus policy will be created before a mutateexisting policy, we can ensure that the mutateexisting policy will always be triggered. --- pkg/adapter/nimbus-kyverno/processor/kpbuilder.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/adapter/nimbus-kyverno/processor/kpbuilder.go b/pkg/adapter/nimbus-kyverno/processor/kpbuilder.go index af85ee0f..d92ae2ec 100644 --- a/pkg/adapter/nimbus-kyverno/processor/kpbuilder.go +++ b/pkg/adapter/nimbus-kyverno/processor/kpbuilder.go @@ -185,9 +185,9 @@ func cocoRuntimeAddition(np *v1alpha1.NimbusPolicy) ([]kyvernov1.Policy, error) kyvernov1.ResourceFilter{ ResourceDescription: kyvernov1.ResourceDescription{ Kinds: []string{ - "v1/ConfigMap", + "intent.security.nimbus.com/v1alpha1/NimbusPolicy", }, - Name: np.Name + "-mutateexisting-trigger-configmap", + Name: np.Name, }, }, },