Skip to content

Commit 5b17467

Browse files
committed
✨ 🚀 add label_sync for AICoE org
Signed-off-by: Christoph Görn <[email protected]>
1 parent 369f1cc commit 5b17467

File tree

3 files changed

+440
-0
lines changed

3 files changed

+440
-0
lines changed

‎prow/overlays/cnv-prod/kustomization.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ configMapGenerator:
2727
- name: labels-operate-first
2828
files:
2929
- labels_operate-first.yaml
30+
- name: labels-aicoe
31+
files:
32+
- labels_aicoe.yaml
3033
generatorOptions:
3134
disableNameSuffixHash: true
3235
generators:

‎prow/overlays/cnv-prod/label-sync-cronjob.yaml

+38
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,44 @@ spec:
115115
---
116116
apiVersion: batch/v1beta1
117117
kind: CronJob
118+
metadata:
119+
name: label-sync-aicoe
120+
spec:
121+
schedule: "57 * * * *"
122+
concurrencyPolicy: Forbid
123+
jobTemplate:
124+
metadata:
125+
labels:
126+
app: label-sync
127+
spec:
128+
template:
129+
spec:
130+
containers:
131+
- name: label-sync
132+
image: label_sync:latest
133+
args:
134+
- --config=/etc/config/labels_aicoe.yaml
135+
- --confirm=true
136+
- --orgs=aicoe
137+
- --token=/etc/github/oauth
138+
volumeMounts:
139+
- name: oauth
140+
mountPath: /etc/github
141+
readOnly: true
142+
- name: config
143+
mountPath: /etc/config
144+
readOnly: true
145+
restartPolicy: Never
146+
volumes:
147+
- name: oauth
148+
secret:
149+
secretName: oauth-token
150+
- name: config
151+
configMap:
152+
name: labels-aicoe
153+
---
154+
apiVersion: batch/v1beta1
155+
kind: CronJob
118156
metadata:
119157
name: label-sync-aicoe-aiops
120158
spec:

0 commit comments

Comments
 (0)