Skip to content

Commit

Permalink
model scan example workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
northdpole committed Oct 18, 2024
1 parent 505fe8d commit 6008101
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
12 changes: 12 additions & 0 deletions examples/pipelines/machine-learning-project/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -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
22 changes: 22 additions & 0 deletions examples/pipelines/machine-learning-project/pipelinerun.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6008101

Please sign in to comment.