This repository was archived by the owner on Jan 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathmodelsync.yaml
45 lines (44 loc) · 1.64 KB
/
modelsync.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# This sample is intended for use with running the controller locally.
# needsSyncUrl should point to a service running on localhost.
# If you are running the lambda service in the cluster you need to
# setup port-forwarding with kubectl
apiVersion: automl.cloudai.kubeflow.org/v1alpha1
kind: ModelSync
metadata:
name: labelbot-deploy
spec:
# This url is for the labelbot diff service. It must be deployed.
failedPipelineRunsHistoryLimit: 10
successfulPipelineRunsHistoryLimit: 10
needsSyncUrl: "http://labelbot-diff.label-bot-prod/needsSync"
parameters:
- needsSyncName: name
pipelineName: automl-model
pipelineRunTemplate:
spec:
params:
- name: automl-model
#value: "projects/976279526634/locations/us-central1/models/TCN654213816573231104"
# If we don't make any change we will get problems trying to do a commit.
value: "notavlidmodel"
# We can reuse the same branch for serial updates as long as the updates happen sequentially.
# This way we can avoid cluterring the repository with multiple branches
# However, only one change can be open on a branch at a time.
- name: branchName
value: auto-update
- name: fork
value: git@github.com:kubeflow/code-intelligence.git
- name: forkName
value: fork
resources:
- name: repo
resourceSpec:
type: git
params:
- name: url
value: https://github.com/kubeflow/code-intelligence.git
- name: revision
value: master
pipelineRef:
name: update-model-pr
serviceAccountName: auto-update