Hide Forgot
Description of problem: In nextgen env, Use `oc explain dc` met error: Couldn't find resource for "apps.openshift.io/v1, Kind=DeploymentConfig" The same like : bc , scc , project and so on. Ansible-installed BRYO env doesn't have the issue. Version-Release number of selected component (if applicable): oc v4.0.0-alpha.0+231d012-769 kubernetes v1.11.0+231d012 How reproducible: always Steps to Reproduce: 1. Login openshift,and create project; 2. Use command : `oc explain dc` Actual results: 2. Met error: Couldn't find resource for "apps.openshift.io/v1, Kind=DeploymentConfig" Expected results: 2. Should works well Additional info:
'explain' doesn't currently work for custom resources like many 4.0 configuration types. There's work upstream to address this [1,2,3]. [1]: https://github.com/kubernetes/kube-openapi/issues/97 [2]: https://github.com/kubernetes/kubernetes/issues/71142 [3]: https://github.com/kubernetes/kubernetes/pull/71192
Additionally, there is a PR open [1] to address openshift-specific types. 1. https://github.com/openshift/origin/pull/21448
Origin PR [1] has merged. 1. https://github.com/openshift/origin/pull/21739
Confirmed with latest version, the issue has fixed: [root@dhcp-140-138 ~]# oc get clusterversion NAME VERSION AVAILABLE PROGRESSING SINCE STATUS version 4.0.0-0.alpha-2019-02-11-201342 True False 5m10s Cluster version is 4.0.0-0.alpha-2019-02-11-201342 [root@dhcp-140-138 ~]# oc explain dc KIND: DeploymentConfig VERSION: apps.openshift.io/v1 DESCRIPTION: Deployment Configs define the template for a pod and manages deploying new images or configuration changes. A single deployment configuration is usually analogous to a single micro-service. Can support many different deployment patterns, including full restart, customizable rolling updates, and fully custom behaviors, as well as pre- and post- deployment hooks. Each individual deployment is represented as a replication controller. A deployment is "triggered" when its configuration is changed or a tag in an Image Stream is changed. Triggers can be disabled to allow manual control over a deployment. The "strategy" determines how the deployment is carried out and may be changed at any time. The `latestVersion` field is updated when a new deployment is triggered by any means. FIELDS: apiVersion <string> APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources kind <string> Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds metadata <Object> Standard object's metadata. spec <Object> -required- Spec represents a desired deployment state and how to deploy to it. status <Object> Status represents the current deployment state.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2019:0758