Skip to content

Commit d8b79ce

Browse files
committed
add role-sync-controller cronjob
1 parent c90839f commit d8b79ce

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

cluster/config-defaults.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,3 +1155,6 @@ sysctl_settings: ""
11551155
# scheduling_controls
11561156
teapot_admission_controller_scheduling_controls_enabled: "false"
11571157
teapot_admission_controller_scheduling_controls_default_architecture: "amd64"
1158+
1159+
# role-sync-controller configs
1160+
role_sync_controller_enabled: "false"
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{{ if .Cluster.ConfigItems.role_sync_controller_enabled "true" }}
2+
apiVersion: batch/v1
3+
kind: CronJob
4+
metadata:
5+
name: role-sync-controller
6+
labels:
7+
application: kubernetes
8+
component: role-sync-controller
9+
spec:
10+
schedule: "*/1 * * * *"
11+
jobTemplate:
12+
spec:
13+
backoffLimit: 3
14+
template:
15+
spec:
16+
restartPolicy: OnFailure
17+
containers:
18+
- name: role-sync-controller
19+
image: container-registry.zalando.net/teapot/role-sync-controller:main-1
20+
imagePullPolicy: IfNotPresent
21+
{{ end }}

0 commit comments

Comments
 (0)