Cron Job for LDAP groups sync code syntax error on OpenShift Container Platform 4.
Issue
The issue is found when using CronJob object to synchronize the LDAP groups following the documentation as described under "Automatically syncing LDAP groups" section.
When the CronJob creates the pod to run its task, then results in an error as shown below:
$ oc get pods
NAME READY STATUS RESTARTS AGE
<ldap-sync-pod>--x-xxxxx 0/1 Error 0 2m4s
Environment
- Red Hat OpenShift Container Platform (RHOCP) 4.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.