Bug 2027311
| Summary: | K8s watch hooks do not work when fetching core resources | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Rastislav Wagner <rawagner> |
| Component: | Management Console | Assignee: | Rastislav Wagner <rawagner> |
| Status: | CLOSED ERRATA | QA Contact: | Yadan Pei <yapei> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.10 | CC: | aos-bugs, jonjacks, spadgett, yapei |
| Target Milestone: | --- | ||
| Target Release: | 4.10.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: | 2022-03-10 16:30:41 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: | |||
*** Bug 2022124 has been marked as a duplicate of this bug. *** 1. with demo plugin list page codes as following https://github.com/openshift/console/blob/master/dynamic-demo-plugin/src/components/ListPage.tsx#L85~L93 const ListPage = () => { const [pods, loaded, loadError] = useK8sWatchResource<K8sResourceCommon[]>({ groupVersionKind: { version: 'v1', kind: 'Pod', }, isList: true, namespaced: true, }); 2. build dynamic demo plugin and enable the plugin 3. navigate to Demo Plugin -> List Page, pods list are loaded without error verified on 4.10.0-0.nightly-2021-12-18-034942 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 (Moderate: OpenShift Container Platform 4.10.3 security update), 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/RHSA-2022:0056 |
Description of problem: A new format {group, version, kind} can be used with k8s watch hooks but it does not work for core resources. How reproducible: always Steps to Reproduce: 1. update demo plugin to use new format https://github.com/openshift/console/blob/master/dynamic-demo-plugin/src/components/ListPage.tsx#L87 const [pods, loaded, loadError] = useK8sWatchResource<K8sResourceCommon[]>({ groupVersionKind: { version: 'v1', kind: 'Pod', }, isList: true, namespaced: true, }); 2. build the plugin and go to demo list page 3. pods are not loaded Actual results: pods are not loaded Expected results: pods are loaded Additional info: