Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1767926

Summary: `targetResource` missing from generated ConsoleYAMLSample CRD
Product: OpenShift Container Platform Reporter: Samuel Padgett <spadgett>
Component: Management ConsoleAssignee: bpeterse
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.3.0CC: aos-bugs, jokerman, yanpzhan
Target Milestone: ---   
Target Release: 4.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Version: 4.3.0-0.ci-2019-10-31-115228 Cluster ID: 56bb5409-be1a-48f7-b67a-2bcc70651960
Last Closed: 2020-01-23 11:10:26 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 Samuel Padgett 2019-11-01 16:46:38 UTC
The CRD is missing `targetResource`, which causes a runtime error in console when a YAML sample is created.

Comment 1 Samuel Padgett 2019-11-01 16:48:27 UTC
I believe this has always been an issue, but it's showing up now since we added `preserveUnknownFields: false`

https://github.com/openshift/api/blob/master/console/v1/types_console_yaml_sample.go#L21-L23

https://github.com/openshift/api/blob/master/console/v1/0000_10_consoleyamlsample.crd.yaml#L42-L74

Comment 2 Samuel Padgett 2019-11-01 17:41:49 UTC
Moving back to assigned as this still requires a console operator change

Comment 3 bpeterse 2019-11-04 17:40:28 UTC
PR to console-operator to consume this api update:

https://github.com/openshift/console-operator/pull/335

Once this merges this bug should be resolved.

Comment 5 Yanping Zhang 2019-11-06 09:11:51 UTC
Fix is not included in payload 4.3.0-0.nightly-2019-11-05-164935, will try when fix is available.

Comment 6 Yanping Zhang 2019-11-07 05:47:30 UTC
Tested on ocp 4.3 with payload 4.3.0-0.nightly-2019-11-06-184828, now create ConsoleYAMLSample crd, there is targetResource in created crd. No runtime error occurs now.

Comment 8 errata-xmlrpc 2020-01-23 11:10:26 UTC
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-2020:0062