Skip to content

Commit 4fa3b1f

Browse files
committed
Add Customizable Sample Pipeline to APIServer
1 parent f83edae commit 4fa3b1f

File tree

4 files changed

+588
-0
lines changed

4 files changed

+588
-0
lines changed

config/internal/apiserver/deployment.yaml.tmpl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,22 @@ spec:
190190
memory: {{.APIServer.Resources.Limits.Memory}}
191191
{{ end }}
192192
{{ end }}
193+
volumeMounts:
194+
- name: sample-config
195+
mountPath: /config/sample_config.json
196+
subPath: sample_config.json
197+
- name: sample-pipeline
198+
mountPath: /samples/
193199
serviceAccountName: ds-pipeline-{{.Name}}
194200
volumes:
195201
- name: proxy-tls
196202
secret:
197203
secretName: ds-pipelines-proxy-tls-{{.Name}}
204+
# TODO: encap in if-exists block
205+
- name: sample-config
206+
configMap:
207+
name: sample-config-{{.Name}}
208+
- name: sample-pipeline
209+
configMap:
210+
name: sample-pipeline-{{.Name}}
211+
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
apiVersion: v1
2+
kind: ConfigMap
3+
metadata:
4+
name: sample-config-{{.Name}}
5+
namespace: {{.Namespace}}
6+
labels:
7+
app: ds-pipeline-{{.Name}}
8+
component: data-science-pipelines
9+
data:
10+
sample_config.json: |-
11+
[
12+
{
13+
"name": "[Demo] iris-training",
14+
"description": "[source code](https://github.com/opendatahub-io/data-science-pipelines/tree/master/samples/iris-training) A simple pipeline to demonstrate a basic ML Training workflow",
15+
"file": "/samples/iris-pipeline-compiled.yaml"
16+
}
17+
]
18+

0 commit comments

Comments
 (0)