Custom image-pruner cronjob failed to prune images from the registry due to an old `oc` CLI version
Issue
- The custom image-pruner cronjob's jobs failed with the error:
E0306 00:01:04.437991 1 helper.go:300] failed to get reference to object *v1.ReplicationController: selfLink was empty, can't make reference
E0306 00:01:04.438015 1 helper.go:300] failed to get reference to object *v1.BuildConfig: selfLink was empty, can't make reference
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x2079b84]
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.