Skip to content

Commit

Permalink
argocd: add rule for correct work with kyverno
Browse files Browse the repository at this point in the history
Signed-off-by: Login Victor <batazor@evrone.com>
  • Loading branch information
batazor committed Sep 16, 2022
1 parent ddce69c commit cd12cce
Show file tree
Hide file tree
Showing 17 changed files with 102 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: infrastructure
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
generators:
- list:
Expand Down
2 changes: 2 additions & 0 deletions ops/Helm/addons/argocd/templates/shortlink/knative.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: knative
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
generators:
- list:
Expand Down
2 changes: 2 additions & 0 deletions ops/Helm/addons/argocd/templates/shortlink/shortlink.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: shortlink
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
generators:
- list:
Expand Down
7 changes: 7 additions & 0 deletions ops/argocd/infrastructure/elasticsearch/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: Application
metadata:
name: elasticsearch
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: shortlink
destination:
Expand Down Expand Up @@ -41,3 +43,8 @@ spec:
duration: 10s
maxDuration: 3m0s
factor: 2
ignoreDifferences:
- group: kyverno.io
kind: ClusterPolicy
jqPathExpressions:
- .spec.rules[] | select(.name|test("autogen-."))
7 changes: 7 additions & 0 deletions ops/argocd/infrastructure/grafana/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: Application
metadata:
name: grafana
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: shortlink
destination:
Expand All @@ -27,3 +29,8 @@ spec:
duration: 10s
maxDuration: 3m0s
factor: 2
ignoreDifferences:
- group: kyverno.io
kind: ClusterPolicy
jqPathExpressions:
- .spec.rules[] | select(.name|test("autogen-."))
7 changes: 7 additions & 0 deletions ops/argocd/infrastructure/kafka/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: Application
metadata:
name: kafka
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: shortlink
destination:
Expand All @@ -27,3 +29,8 @@ spec:
duration: 10s
maxDuration: 3m0s
factor: 2
ignoreDifferences:
- group: kyverno.io
kind: ClusterPolicy
jqPathExpressions:
- .spec.rules[] | select(.name|test("autogen-."))
7 changes: 7 additions & 0 deletions ops/argocd/infrastructure/kyverno/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: Application
metadata:
name: kyverno
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: shortlink
destination:
Expand All @@ -27,3 +29,8 @@ spec:
duration: 10s
maxDuration: 3m0s
factor: 2
ignoreDifferences:
- group: kyverno.io
kind: ClusterPolicy
jqPathExpressions:
- .spec.rules[] | select(.name|test("autogen-."))
7 changes: 7 additions & 0 deletions ops/argocd/infrastructure/postgresql/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: Application
metadata:
name: postgresql
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: shortlink
destination:
Expand All @@ -27,3 +29,8 @@ spec:
duration: 10s
maxDuration: 3m0s
factor: 2
ignoreDifferences:
- group: kyverno.io
kind: ClusterPolicy
jqPathExpressions:
- .spec.rules[] | select(.name|test("autogen-."))
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: Application
metadata:
name: prometheus-operator
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: shortlink
destination:
Expand All @@ -27,3 +29,8 @@ spec:
duration: 10s
maxDuration: 3m0s
factor: 2
ignoreDifferences:
- group: kyverno.io
kind: ClusterPolicy
jqPathExpressions:
- .spec.rules[] | select(.name|test("autogen-."))
7 changes: 7 additions & 0 deletions ops/argocd/infrastructure/rabbitmq/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: Application
metadata:
name: rabbitmq
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: shortlink
destination:
Expand All @@ -27,3 +29,8 @@ spec:
duration: 10s
maxDuration: 3m0s
factor: 2
ignoreDifferences:
- group: kyverno.io
kind: ClusterPolicy
jqPathExpressions:
- .spec.rules[] | select(.name|test("autogen-."))
7 changes: 7 additions & 0 deletions ops/argocd/infrastructure/redis/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: Application
metadata:
name: redis
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: shortlink
destination:
Expand All @@ -27,3 +29,8 @@ spec:
duration: 10s
maxDuration: 3m0s
factor: 2
ignoreDifferences:
- group: kyverno.io
kind: ClusterPolicy
jqPathExpressions:
- .spec.rules[] | select(.name|test("autogen-."))
7 changes: 7 additions & 0 deletions ops/argocd/knative/knative-eventing/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: Application
metadata:
name: knative-eventing
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: shortlink
destination:
Expand All @@ -25,3 +27,8 @@ spec:
duration: 10s
maxDuration: 3m0s
factor: 2
ignoreDifferences:
- group: kyverno.io
kind: ClusterPolicy
jqPathExpressions:
- .spec.rules[] | select(.name|test("autogen-."))
7 changes: 7 additions & 0 deletions ops/argocd/knative/knative-operator/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: Application
metadata:
name: knative-operator
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: shortlink
destination:
Expand All @@ -27,3 +29,8 @@ spec:
duration: 10s
maxDuration: 3m0s
factor: 2
ignoreDifferences:
- group: kyverno.io
kind: ClusterPolicy
jqPathExpressions:
- .spec.rules[] | select(.name|test("autogen-."))
7 changes: 7 additions & 0 deletions ops/argocd/knative/knative-serving/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: Application
metadata:
name: knative-serving
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: shortlink
destination:
Expand All @@ -25,3 +27,8 @@ spec:
duration: 10s
maxDuration: 3m0s
factor: 2
ignoreDifferences:
- group: kyverno.io
kind: ClusterPolicy
jqPathExpressions:
- .spec.rules[] | select(.name|test("autogen-."))
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: Application
metadata:
name: sync-kafka-to-elasticsearch
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: shortlink
destination:
Expand All @@ -25,3 +27,8 @@ spec:
duration: 10s
maxDuration: 3m0s
factor: 2
ignoreDifferences:
- group: kyverno.io
kind: ClusterPolicy
jqPathExpressions:
- .spec.rules[] | select(.name|test("autogen-."))
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: Application
metadata:
name: sync-rabbitmq-to-elasticsearch
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: shortlink
destination:
Expand All @@ -25,3 +27,8 @@ spec:
duration: 10s
maxDuration: 3m0s
factor: 2
ignoreDifferences:
- group: kyverno.io
kind: ClusterPolicy
jqPathExpressions:
- .spec.rules[] | select(.name|test("autogen-."))
5 changes: 5 additions & 0 deletions ops/argocd/shortlink/link/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,8 @@ spec:
duration: 10s
maxDuration: 3m0s
factor: 2
ignoreDifferences:
- group: kyverno.io
kind: ClusterPolicy
jqPathExpressions:
- .spec.rules[] | select(.name|test("autogen-."))

0 comments on commit cd12cce

Please sign in to comment.