-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add label sync cron job and add back label which has external depende…
…ncy (#104) * add kubeflow_label.yml for label sycn across repos in kubeflow, along with helper script to generate it. * reformat process_label.py to fix pylint check * handle code review feedback & change code to python3 * cron job config for label sync, along with adding 'do-not-merge' back * handle review feedback
- Loading branch information
1 parent
3f8518f
commit 0cd3b25
Showing
2 changed files
with
49 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
apiVersion: batch/v1beta1 | ||
kind: CronJob | ||
metadata: | ||
name: label-sync-fix | ||
spec: | ||
schedule: "17 23 * * *" # Every day 23:17 / 11:17PM | ||
concurrencyPolicy: Forbid | ||
jobTemplate: | ||
metadata: | ||
labels: | ||
app: label-sync | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: label-sync | ||
image: gcr.io/k8s-testimages/label_sync:v20180227-377685119 | ||
args: | ||
- --config=/etc/config/kubeflow_label.yml | ||
- --confirm=true | ||
- --orgs=kubeflow | ||
- --token=/etc/github/bot-token | ||
- --skip=kubeflow/kubeflow,kubeflow/tf-operator,kubeflow/testing,kubeflow/example-seldon,kubeflow/experimental-kvc | ||
volumeMounts: | ||
- name: oauth | ||
mountPath: /etc/github | ||
readOnly: true | ||
- name: config | ||
mountPath: /etc/config | ||
readOnly: true | ||
restartPolicy: Never | ||
volumes: | ||
- name: oauth | ||
secret: | ||
secretName: bot-token-github | ||
- name: config | ||
configMap: | ||
name: label-config-v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters