From 5e8712dbfb2e4fadbed4b618a4d7c71c2df62297 Mon Sep 17 00:00:00 2001 From: Danijel Simeunovic Date: Thu, 5 Mar 2026 15:51:11 +0100 Subject: [PATCH] trivy reinstall --- infra/trivy.yaml | 57 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 infra/trivy.yaml diff --git a/infra/trivy.yaml b/infra/trivy.yaml new file mode 100644 index 0000000..5aa50f9 --- /dev/null +++ b/infra/trivy.yaml @@ -0,0 +1,57 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: trivy-operator + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "0" + labels: + app.kubernetes.io/name: trivy-operator + app.kubernetes.io/part-of: platform + app.kubernetes.io/managed-by: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: default + + source: + repoURL: https://aquasecurity.github.io/helm-charts + chart: trivy-operator + targetRevision: 0.31.0 + helm: + releaseName: trivy-operator + valuesObject: + operator: + targetNamespaces: "" + excludeNamespaces: "" + scanJobsInSameNamespace: true + trivy: + ignoreUnfixed: false + + destination: + server: https://kubernetes.default.svc + namespace: trivy-system + + syncPolicy: + automated: + prune: true + selfHeal: true + allowEmpty: false + syncOptions: + - CreateNamespace=true + - Validate=true + - ServerSideApply=true + retry: + limit: 5 + backoff: + duration: 5s + factor: 2 + maxDuration: 3m + + ignoreDifferences: + - group: apiextensions.k8s.io + kind: CustomResourceDefinition + jsonPointers: + - /metadata/labels + - /metadata/annotations + - /metadata/finalizers