Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oc explain does not work for cronjobs #18261

Closed
0xmichalis opened this issue Jan 24, 2018 · 3 comments
Closed

oc explain does not work for cronjobs #18261

0xmichalis opened this issue Jan 24, 2018 · 3 comments
Assignees
Labels
component/kubernetes kind/bug Categorizes issue or PR as related to a bug. priority/P2 sig/master

Comments

@0xmichalis
Copy link
Contributor

$ oc version
oc v3.9.0-alpha.3+8220060-167
kubernetes v1.9.1+a0ce1bc657
features: Basic-Auth GSSAPI Kerberos SPNEGO

Server https://api.ci.openshift.org:443
openshift v3.7.0-rc.0+bd64aab-99
kubernetes v1.7.6+a08f5eeb62
$ oc explain cronjobs
error: Couldn't find resource for "batch/v1, Kind=CronJob"
$ oc get cronjobs --all-namespaces
NAMESPACE   NAME                SCHEDULE    SUSPEND   ACTIVE    LAST SCHEDULE   AGE
origin-ci   jenkins-team-sync   0 0 * * *   False     1         18d             18d

/assign @soltysh
/sig master
/kind bug

@openshift-ci-robot openshift-ci-robot added sig/master kind/bug Categorizes issue or PR as related to a bug. labels Jan 24, 2018
@php-coder
Copy link
Contributor

CC @juanvallejo

@soltysh
Copy link
Contributor

soltysh commented Jan 24, 2018

Seems like #18157 didn't fix all the problems.

@juanvallejo juanvallejo self-assigned this Jan 24, 2018
@soltysh
Copy link
Contributor

soltysh commented Jan 24, 2018

A temporary workaround is to pass --api-version=batch/v1beta1 and that will work.

openshift-merge-robot added a commit that referenced this issue Feb 5, 2018
Automatic merge from submit-queue (batch tested with PRs 18415, 18419, 18268, 18102, 18440).

UPSTREAM: 58753: Fix kubectl explain for cronjobs

Fixes #18261.

@Kargakis fyi
/assign @juanvallejo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/kubernetes kind/bug Categorizes issue or PR as related to a bug. priority/P2 sig/master
Projects
None yet
Development

No branches or pull requests

6 participants