Skip to content

Commit

Permalink
Ignore changes to autogen kyverno rules
Browse files Browse the repository at this point in the history
  • Loading branch information
MacroPower committed May 28, 2024
1 parent 55ee33f commit e34bfa0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
12 changes: 8 additions & 4 deletions applications/base/kyverno-policies/application.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ app.new(
name='kyverno-policies',
path='applications/base/kyverno-policies',
namespace=ns.metadata.name,
annotations={
'argocd.argoproj.io/hook': 'PreSync',
},
renderer='kustomize',
)
).withIgnoreDifferences([{
'group': 'kyverno.io',
'kind': 'ClusterPolicy',
'jsonPointers': [
'/status/autogen',
'/metadata/resourceVersion',
],
}])
3 changes: 0 additions & 3 deletions applications/base/kyverno/application.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ app.new(
name='kyverno',
path='applications/base/kyverno',
namespace=ns.metadata.name,
annotations={
'argocd.argoproj.io/hook': 'PreSync',
},
).withChart(
name='kyverno',
repoURL='https://kyverno.github.io/kyverno/',
Expand Down

0 comments on commit e34bfa0

Please sign in to comment.