Skip to content

Commit

Permalink
- Modifying the trigger for the mutateexisting policy to the Nimbus (#…
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
shivaccuknox authored Jul 6, 2024
1 parent 63dfcdf commit 1195c7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/adapter/nimbus-kyverno/processor/kpbuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
},
},
Expand Down

0 comments on commit 1195c7d

Please sign in to comment.