Cronjobs failing with error "oc: executable file not found in $PATH" in OCP 3
Issue
Every time the Cronjobs runs, it fails in state Crashloop
and throws error below, when adding the file as VOLUME
in the cronjob configuration.
error: could not read file /opt/AD-OCP-Yamlfiles/ocp-ldap.yaml: open /opt/AD-OCP-Yamlfiles/ocp-ldap.yaml: no such file or directory
Then after adding the file as ConfigMap, it throws error:
container_linux.go:247: starting container process caused "exec: \"oc\": executable file not found in $PATH"
Environment
Red Hat OpenShift Container Platform 3.X
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.