Bug 1705746
| Summary: | Missing openapi CRD definitions for oc explain to work | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Maciej Szulik <maszulik> |
| Component: | OLM | Assignee: | Evan Cordell <ecordell> |
| OLM sub component: | OLM | QA Contact: | Jian Zhang <jiazha> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | medium | ||
| Priority: | medium | CC: | bandrade, eparis, jpeeler, scolange, sponnaga |
| Version: | 4.1.0 | ||
| Target Milestone: | --- | ||
| Target Release: | 4.2.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-10-16 06:28:21 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Maciej Szulik
2019-05-02 21:01:02 UTC
This was "part 2" and just merged: https://github.com/operator-framework/operator-lifecycle-manager/pull/848 Should make 4.1, so retargeting. OLM version: io.openshift.build.commit.id=19e7914e33f723c6f77f7aaa0892c7684ce94ed4
Cluster version is 4.1.0-rc.2
mac:beta5 jianzhang$ oc version
Client Version: version.Info{Major:"4", Minor:"1+", GitVersion:"v4.1.0-201905071832+f055278-dirty", GitCommit:"f055278", GitTreeState:"dirty", BuildDate:"2019-05-07T23:26:15Z", GoVersion:"go1.11.5", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"13+", GitVersion:"v1.13.4+36fc093", GitCommit:"36fc093", GitTreeState:"clean", BuildDate:"2019-05-08T15:27:51Z", GoVersion:"go1.11.5", Compiler:"gc", Platform:"linux/amd64"}
mac:beta5 jianzhang$ oc explain sub
KIND: Subscription
VERSION: operators.coreos.com/v1alpha1
DESCRIPTION:
Subscribes service catalog to a source and channel to recieve updates for
packages.
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. More info:
https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
spec <Object>
Spec for a Subscription
mac:beta5 jianzhang$ oc explain csv
KIND: ClusterServiceVersion
VERSION: operators.coreos.com/v1alpha1
DESCRIPTION:
Represents an Operator that should be running on the cluster, including
requirements and install strategy.
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. More info:
https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
spec <Object>
Spec for a ClusterServiceVersion
status <map[string]>
Status for a ClusterServiceVersion
mac:beta5 jianzhang$ oc explain ip
KIND: InstallPlan
VERSION: operators.coreos.com/v1alpha1
DESCRIPTION:
Represents a plan to install and resolve dependencies for Cluster Services.
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. More info:
https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
spec <Object>
Spec for an InstallPlan
The above objects look good, but for `catalogsource`, it's lack of the description for the `spec` field.
mac:beta5 jianzhang$ oc explain catalogsource
KIND: CatalogSource
VERSION: operators.coreos.com/v1alpha1
DESCRIPTION:
A source configured to find packages and updates.
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. More info:
https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
spec <Object>
Spec for a catalog source.
status <Object>
The status of the CatalogSource
mac:beta5 jianzhang$ oc explain operatorgroup
KIND: OperatorGroup
VERSION: operators.coreos.com/v1
DESCRIPTION:
A grouping of namespaces for usage with an operator.
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> -required-
Standard object's metadata. More info:
https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
spec <Object>
status <Object>
The missing descriptions for the operator group has been fixed here: https://github.com/operator-framework/operator-lifecycle-manager/pull/910 OLM version:
source commit id: 49690b7bc249d729aace013edc18291137304e44
mac:~ jianzhang$ oc rsh catalog-operator-7fc5cdc5f8-9mwwz
sh-4.2$ olm --version
OLM version: 0.10.1
git commit: 49690b7
Cluster version is 4.2.0-0.ci-2019-07-03-100447
`operatorgroup` works well, as below, verify it.
mac:~ jianzhang$ oc explain operatorgroup
KIND: OperatorGroup
VERSION: operators.coreos.com/v1
DESCRIPTION:
A grouping of namespaces for usage with an operator.
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> -required-
Standard object's metadata. More info:
https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
spec <Object>
Spec for an OperatorGroup.
status <Object>
The status of the OperatorGroup.
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:2922 |