Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-56248

[UI/Plugin] Error when using k8sGetResource from @openshift-console/dynamic-plugin-sdk

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • 4.20.0
    • 4.18, 4.19
    • Management Console
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Moderate
    • None
    • None
    • None
    • None
    • Proposed
    • Bug Fix
    • Hide
      Before this update, the generated console dynamic plugin API documentation used incorrect `k8s` utility function names, such as `k8sGetResource` instead of `k8sGet`. This update ensures the documentation uses the correct function names with their export name aliases. As a result, the API documentation is clearer for console dynamic plugin developers working with `k8s` utility functions. (link:https://issues.redhat.com/browse/OCPBUGS-56248[OCPBUGS-56248])
      Show
      Before this update, the generated console dynamic plugin API documentation used incorrect `k8s` utility function names, such as `k8sGetResource` instead of `k8sGet`. This update ensures the documentation uses the correct function names with their export name aliases. As a result, the API documentation is clearer for console dynamic plugin developers working with `k8s` utility functions. (link: https://issues.redhat.com/browse/OCPBUGS-56248 [ OCPBUGS-56248 ])
    • None
    • None
    • None
    • None

      Description of problem:

          k8sGet is deprecated but using its replacement k8sGetResource throws error.

      Version-Release number of selected component (if applicable):

          "@openshift-console/dynamic-plugin-sdk": "1.8.0"

      How reproducible:

          Always

      Steps to Reproduce:

          1. Invoke k8sGetResource in a plugin code.
          2.
          3.
          

      Actual results:

          ERROR in ./node_modules/@openshift-console/dynamic-plugin-sdk/lib/utils/k8s/k8s-utils.js 7:21-56
      Module not found: Error: Can't resolve '@console/internal/models'

      Expected results:

          It should work.

      Additional info:

          

              vszocs@redhat.com Vojtech Szocs
              almartin-storage-ocs Alfonso Martínez Hidalgo
              None
              Samuel Padgett
              YaDan Pei YaDan Pei
              Jocelyn Sese Jocelyn Sese
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: