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

Bug 1735685

Summary: kind: Console should show in the suggestion kind list correctly
Product: OpenShift Container Platform Reporter: Yadan Pei <yapei>
Component: Management ConsoleAssignee: Josh Pinkney <jpinkney>
Status: CLOSED DUPLICATE QA Contact: Yadan Pei <yapei>
Severity: low Docs Contact:
Priority: medium    
Version: 4.2.0CC: aos-bugs, bpeterse, jokerman, mbenitez, sgoodwin, spadgett, yapei
Target Milestone: ---   
Target Release: 4.6.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: 2020-06-18 18:46:19 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:
Attachments:
Description Flags
suggestion list options includes Console
none
Message - "Incorrect type. Expected "string". Value is not accepted. Valid values: "Console". none

Description Yadan Pei 2019-08-01 09:12:33 UTC
Description of problem:
Console is not showing in the suggestion kind list for 'apiVersion: operator.openshift.io' and it shows error in YAML

Version-Release number of selected component (if applicable):
4.2.0-0.nightly-2019-07-31-162901

How reproducible:
Always

Steps to Reproduce:
1. cluster admin goes to console.operator/cluster YAML page
at /k8s/cluster/operator.openshift.io~v1~Console/cluster/yaml 


Actual results:
1. There is kind: Console, hover it will show message "Value is not accepted, Valid values: Authentication", also Console is not listed in the suggestion kind list

Expected results:
1. kind: Console should be a valid kind and appear in the drowdown list
$ oc api-resources --api-group=operator.openshift.io
NAME                               SHORTNAMES   APIGROUP                NAMESPACED   KIND
authentications                                 operator.openshift.io   false        Authentication
consoles                                        operator.openshift.io   false        Console
dnses                                           operator.openshift.io   false        DNS
imagecontentsourcepolicies                      operator.openshift.io   false        ImageContentSourcePolicy
ingresscontrollers                              operator.openshift.io   true         IngressController
kubeapiservers                                  operator.openshift.io   false        KubeAPIServer
kubecontrollermanagers                          operator.openshift.io   false        KubeControllerManager
kubeschedulers                                  operator.openshift.io   false        KubeScheduler
networks                                        operator.openshift.io   false        Network
openshiftapiservers                             operator.openshift.io   false        OpenShiftAPIServer
openshiftcontrollermanagers                     operator.openshift.io   false        OpenShiftControllerManager
servicecas                                      operator.openshift.io   false        ServiceCA
servicecatalogapiservers                        operator.openshift.io   false        ServiceCatalogAPIServer
servicecatalogcontrollermanagers                operator.openshift.io   false        ServiceCatalogControllerManager

Additional info:
Also 'ImageContentSourcePolicy' is not showing in the list too

Comment 1 Yadan Pei 2019-08-01 09:13:04 UTC
Created attachment 1596889 [details]
ConsoleNotShowingUp

Comment 2 Yadan Pei 2019-08-01 09:15:39 UTC
Also it looks like not all workloads API schema is correctly loaded

When create ImageStream from default YAML , it shows a ~~~~ warning icon for kind: ImageStream, using ctrl + space to view suggestion kind list, only 'ImageStreamLayers' is shown

Comment 3 Steve Goodwin 2019-08-01 19:06:58 UTC
I am seeing different warning message and the option "Console" is listed in the suggestion list.
See attached screenshots

Comment 4 Steve Goodwin 2019-08-01 19:07:44 UTC
Created attachment 1599066 [details]
suggestion list options includes Console

Comment 5 Steve Goodwin 2019-08-01 19:09:13 UTC
Created attachment 1599082 [details]
Message - "Incorrect type. Expected "string". Value is not accepted. Valid values: "Console".

Comment 6 Steve Goodwin 2019-08-01 19:41:27 UTC
What browser/version & OS was this seen on? thanks

Comment 7 Yadan Pei 2019-08-02 06:26:18 UTC
It looks like you're viewing console.config page(no issue) while I'm looking at console.operator page(there is issue) 

Can you try visiting URL https://<console_route>/k8s/cluster/operator.openshift.io~v1~Console/cluster/yaml?

Comment 8 Josh Pinkney 2019-08-29 13:19:23 UTC
Hello,

This should be fixed with https://github.com/openshift/console/pull/2424. Now it will show a list of all the valid values for kind when it errors and you will also see `Console` as well as any other suggestions the schema gives when doing auto completion.

Comment 11 Samuel Padgett 2020-06-18 18:46:19 UTC
This is fixed indirectly by bug 1732740.

*** This bug has been marked as a duplicate of bug 1732740 ***