Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add label sync cron job and add back label which has external dependency #104

Merged
merged 6 commits into from
Apr 10, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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