From 571ccff0a6e4cd1a5c8fa4e49b9d4a22730378ac Mon Sep 17 00:00:00 2001 From: void404 Date: Mon, 3 Apr 2023 12:21:10 +0200 Subject: [PATCH 1/3] Configure trivy for compass-manager --- .../compass-manager/static-checks.yaml | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 prow/jobs/kyma-project/compass-manager/static-checks.yaml diff --git a/prow/jobs/kyma-project/compass-manager/static-checks.yaml b/prow/jobs/kyma-project/compass-manager/static-checks.yaml new file mode 100644 index 000000000000..101d4d274b9f --- /dev/null +++ b/prow/jobs/kyma-project/compass-manager/static-checks.yaml @@ -0,0 +1,32 @@ +presubmits: # runs on PRs + kyma-project/compass-manager: + - name: pre-main-compass-manager-trivy + annotations: + pipeline.test: "fast-integration" + pipeline.trigger: "pr-submit" + pipeline.type: "integration" + labels: + prow.k8s.io/pubsub.project: "sap-kyma-prow" + prow.k8s.io/pubsub.runID: "pre-main-compass-manager-trivy" + prow.k8s.io/pubsub.topic: "prowjobs" + run_if_changed: '.+' + skip_report: false + decorate: true + path_alias: github.com/kyma-project/kyma + cluster: untrusted-workload + max_concurrency: 10 + branches: + - ^main$ + spec: + containers: + - image: "aquasec/trivy:0.39.0" + args: ["trivy", "fs", "--config", ".trivy.yaml", "."] + resources: + requests: + memory: 300Mi + cpu: 500m + limits: + memory: 1Gi + cpu: 1 + securityContext: + privileged: true From a35992a788bd8d956459617d604498f234f2e51a Mon Sep 17 00:00:00 2001 From: void404 Date: Mon, 3 Apr 2023 12:23:46 +0200 Subject: [PATCH 2/3] Configure pjtester --- vpath/pjtester.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 vpath/pjtester.yaml diff --git a/vpath/pjtester.yaml b/vpath/pjtester.yaml new file mode 100644 index 000000000000..52c3ec68855a --- /dev/null +++ b/vpath/pjtester.yaml @@ -0,0 +1,10 @@ +pjConfigs: + prowJobs: + kyma-project: + compass-manager: + - pjName: "pre-main-compass-manager-trivy" + +prConfigs: + kyma-project: + compass-manager: + prNumber: 3 From 63d03c5d7e52790935712f7078fa5c62c1eb2161 Mon Sep 17 00:00:00 2001 From: void404 Date: Mon, 3 Apr 2023 14:12:50 +0200 Subject: [PATCH 3/3] Revert "Configure pjtester" This reverts commit a35992a788bd8d956459617d604498f234f2e51a. --- vpath/pjtester.yaml | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 vpath/pjtester.yaml diff --git a/vpath/pjtester.yaml b/vpath/pjtester.yaml deleted file mode 100644 index 52c3ec68855a..000000000000 --- a/vpath/pjtester.yaml +++ /dev/null @@ -1,10 +0,0 @@ -pjConfigs: - prowJobs: - kyma-project: - compass-manager: - - pjName: "pre-main-compass-manager-trivy" - -prConfigs: - kyma-project: - compass-manager: - prNumber: 3