From 6008101303dc8ff81f7039ed1444f27ffe480c14 Mon Sep 17 00:00:00 2001 From: sg Date: Wed, 9 Oct 2024 14:27:20 +0100 Subject: [PATCH] model scan example workflow --- .../kustomization.yaml | 12 ++++++++++ .../machine-learning-project/pipelinerun.yaml | 22 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 examples/pipelines/machine-learning-project/kustomization.yaml create mode 100644 examples/pipelines/machine-learning-project/pipelinerun.yaml diff --git a/examples/pipelines/machine-learning-project/kustomization.yaml b/examples/pipelines/machine-learning-project/kustomization.yaml new file mode 100644 index 000000000..509311b43 --- /dev/null +++ b/examples/pipelines/machine-learning-project/kustomization.yaml @@ -0,0 +1,12 @@ +--- +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +nameSuffix: -machine-learning-project +components: + - pkg:helm/dracon-oss-components/base + - pkg:helm/dracon-oss-components/git-clone + - pkg:helm/dracon-oss-components/producer-modelscan + - pkg:helm/dracon-oss-components/producer-aggregator + - pkg:helm/dracon-oss-components/enricher-codeowners + - pkg:helm/dracon-oss-components/enricher-aggregator + - pkg:helm/dracon-oss-components/consumer-stdout-json diff --git a/examples/pipelines/machine-learning-project/pipelinerun.yaml b/examples/pipelines/machine-learning-project/pipelinerun.yaml new file mode 100644 index 000000000..e0620a65b --- /dev/null +++ b/examples/pipelines/machine-learning-project/pipelinerun.yaml @@ -0,0 +1,22 @@ +--- +apiVersion: tekton.dev/v1beta1 +kind: PipelineRun +metadata: + generateName: dracon-machine-learning-project- +spec: + pipelineRef: + name: dracon-machine-learning-project + params: + - name: git-clone-url + value: https://github.com/ocurity/e2e-monorepo.git + - name: producer-modelscan-relative-path-to-model + value: "vulnerable-ml-models/unsafe_xgboost_model.pkl" + workspaces: + - name: output + volumeClaimTemplate: + spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 1Gi