Bug 2060583

Summary: Remove Console internal-kubevirt plugin SDK package
Product: OpenShift Container Platform Reporter: Vojtech Szocs <vszocs>
Component: Management ConsoleAssignee: Vojtech Szocs <vszocs>
Status: CLOSED ERRATA QA Contact: Xiyun Zhao <xiyuzhao>
Severity: medium Docs Contact:
Priority: high    
Version: 4.10CC: jhadvig, spadgett, yufchang
Target Milestone: ---   
Target Release: 4.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-10 10:52:11 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 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