Bug 2060583 - Remove Console internal-kubevirt plugin SDK package
Summary: Remove Console internal-kubevirt plugin SDK package
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.10
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: 4.11.0
Assignee: Vojtech Szocs
QA Contact: Xiyun Zhao
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-03 19:31 UTC by Vojtech Szocs
Modified: 2022-08-10 10:52 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-08-10 10:52:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 11091 0 None open Bug 2060583: Remove internal-kubevirt Console plugin SDK package 2022-03-03 19:32:51 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 10:52:41 UTC

Description Vojtech Szocs 2022-03-03 19:31:58 UTC
Kubevirt dynamic plugin [1] currently depends on Console core, internal and webpack SDK packages.

[1] https://github.com/kubevirt-ui/kubevirt-plugin

The kubevirt-internal one is not needed anymore and should be removed.

Comment 4 Xiyun Zhao 2022-03-23 15:52:28 UTC
This bug has been verified on payload 4.11.0-0.nightly-2022-03-20-160505

Verification step:
1. Git clone console repo
2. yarn install && yarn build on ./console/frontend
3. yarn install && yarn run build on ./console/dynamic-demo-plugin
4. Verify if install and build the frontend and dyanmic-demo-plugin without any error, all process is passed
5. Use the shared YAML file on https://github.com/openshift/console/blob/master/dynamic-demo-plugin/oc-manifest.yaml to create services and console plugin resources on console
6. Enable the plugin on Cluster Setting -> Configuation tab -> choose console(operator.openshif.io) and wait for some time. Refresh the page
7. Check if the demo plugin related part is working well on nav menu on Administrator and developer perspective view

Result:
4. dynamic-demo-plugin and frontend are built without any error, no type errors found.
   The response of dyanmic-demo-plugin:
       modules by path *.0 (singleton) 84 bytes
      consume shared module (default) react-router-dom@=5.2.0 (singleton) 42 bytes [built] [code generated]
      consume shared module (default) react@^16.8.0 || ^17.0.0 (singleton) 42 bytes [built] [code generated]
       + 4 modules
      webpack 5.68.0 compiled successfully in 8335 ms
      Done in 10.26s.
   The response of frontend:
      [19] ./node_modules/monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js 25.8 KiB {0} [built]
      [20] ./node_modules/monaco-editor/esm/vs/base/common/arrays.js 7.5 KiB {0} [built]
      [22] ./node_modules/monaco-editor/esm/vs/editor/common/diff/diffComputer.js 21 KiB {0} [built]
      [34] ./node_modules/monaco-editor/esm/vs/editor/editor.worker.js 1.07 KiB {0} [built]
        + 23 hidden modules
    Done in 265.04s.
7. The function is working well, changes of remove kubevirt-internal is not impact the plugin. User is able to navigate to Demo Plugin -> K8s API page, the sample like k8sCreate, k8sGet, k8sPathc is still shown and worked on page.

Comment 7 errata-xmlrpc 2022-08-10 10:52:11 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 (Important: OpenShift Container Platform 4.11.0 bug fix and 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:5069


Note You need to log in before you can comment on or make changes to this bug.