Skip to content

Commit

Permalink
Add label sync cron job and add back label which has external depende…
Browse files Browse the repository at this point in the history
…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
kunmingg authored and k8s-ci-robot committed Apr 10, 2018
1 parent 3f8518f commit 0cd3b25
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 4 deletions.
38 changes: 38 additions & 0 deletions label_sync/cluster/label_sync_job.yaml
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
15 changes: 11 additions & 4 deletions label_sync/kubeflow_label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ labels:
name: area/logging
- color: d2b48c
name: area/operator
- color: d2b48c
name: area/usage
- color: ecfc15
name: community/discussion
- color: ecfc15
Expand Down Expand Up @@ -93,19 +95,24 @@ labels:
- color: 00daff
name: starter
- color: 03db12
name: status/approved
name: approved
previously:
- name: status/approved
- color: bc9090
name: status/backlog
- color: fca42e
name: status/done
- color: '808080'
name: status/icebox
# Don't remove, this label is being used by prow
- color: ffa500
name: status/in progress
name: do-not-merge/work-in-progress
previously:
- name: do-not-merge/work-in-progress
- name: status/in progress
- color: 2efca4
name: status/lgtm
name: lgtm
previously:
- name: status/lgtm
- color: 00daff
name: testing
previously:
Expand Down

0 comments on commit 0cd3b25

Please sign in to comment.