You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/ldap-auto-syncing.adoc
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -175,6 +175,7 @@ spec:
175
175
jobTemplate:
176
176
spec:
177
177
backoffLimit: 0
178
+
ttlSecondsAfterFinished: 1800 <3>
178
179
template:
179
180
spec:
180
181
containers:
@@ -183,7 +184,7 @@ spec:
183
184
command:
184
185
- "/bin/bash"
185
186
- "-c"
186
-
- "oc adm groups sync --sync-config=/etc/config/sync.yaml --confirm" <3>
187
+
- "oc adm groups sync --sync-config=/etc/config/sync.yaml --confirm" <4>
187
188
volumeMounts:
188
189
- mountPath: "/etc/config"
189
190
name: "ldap-sync-volume"
@@ -197,10 +198,10 @@ spec:
197
198
name: "ldap-group-syncer"
198
199
- name: "ldap-bind-password"
199
200
secret:
200
-
secretName: "ldap-secret" <4>
201
+
secretName: "ldap-secret" <5>
201
202
- name: "ldap-ca"
202
203
configMap:
203
-
name: "ca-config-map" <5>
204
+
name: "ca-config-map" <6>
204
205
restartPolicy: "Never"
205
206
terminationGracePeriodSeconds: 30
206
207
activeDeadlineSeconds: 500
@@ -209,9 +210,10 @@ spec:
209
210
----
210
211
<1> Configure the settings for the cron job. See "Creating cron jobs" for more information on cron job settings.
211
212
<2> The schedule for the job specified in link:https://en.wikipedia.org/wiki/Cron[cron format]. This example cron job runs every 30 minutes. Adjust the frequency as necessary, making sure to take into account how long the sync takes to run.
212
-
<3> The LDAP sync command for the cron job to run. Passes in the sync configuration file that was defined in the config map.
213
-
<4> This secret was created when the LDAP IDP was configured.
214
-
<5> This config map was created when the LDAP IDP was configured.
213
+
<3> How long, in seconds, to keep finished jobs. This should match the period of the job schedule in order to clean old failed jobs and prevent unnecessary alerts. For more information, see link:https://kubernetes.io/docs/concepts/workloads/controllers/ttlafterfinished[TTL-after-finished Controller] in the Kubernetes documentation.
214
+
<4> The LDAP sync command for the cron job to run. Passes in the sync configuration file that was defined in the config map.
215
+
<5> This secret was created when the LDAP IDP was configured.
216
+
<6> This config map was created when the LDAP IDP was configured.
0 commit comments