Bugzilla (bugzilla.redhat.com) will be under maintenance for infrastructure upgrades and will not be unavailable on July 31st between 12:30 AM - 05:30 AM UTC. We appreciate your understanding and patience. You can follow status.redhat.com for details.
Bug 1567660 - oc debug does not work against cronjobs
Summary: oc debug does not work against cronjobs
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 3.9.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 3.10.0
Assignee: Juan Vallejo
QA Contact: Xingxing Xia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-04-15 21:16 UTC by Clayton Coleman
Modified: 2018-04-18 12:21 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-18 12:21:13 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Clayton Coleman 2018-04-15 21:16:51 UTC
$ oc debug -n ci cronjob/image-pruner
error: cannot debug image-pruner: unable to extract pod template from type *batch.CronJob

Should work.

Comment 2 Maciej Szulik 2018-04-18 12:21:13 UTC
I don't think this request is reasonable. CronJob only creates Jobs, and as such it's hard to figure out which job you want to connect to during this invocation. A few examples:
- you have multiple jobs invoked at the same time, which one you want to connect?
- you don't have any job currently running, what do you do?

If you need to debug, you should debug a particular instance of a CronJob, which is a Job and that is supported ootb.


Note You need to log in before you can comment on or make changes to this bug.