Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extension not showing anything #24

Open
dkarnutsch opened this issue Aug 18, 2022 · 9 comments
Open

extension not showing anything #24

dkarnutsch opened this issue Aug 18, 2022 · 9 comments

Comments

@dkarnutsch
Copy link

I've installed the extension and it seems to be enabled.
Screenshot 2022-08-18 at 17 05 54

However, I can't see the "trivy-operator" menu item.
Screenshot 2022-08-18 at 17 07 28

If I query kubernetes for vulnerabilityreports, I get results:

➜  ~/ws/trivy-operator git:(main) ✗     kubectl get vulnerabilityreports --all-namespaces -o wide
NAMESPACE          NAME                                                            REPOSITORY                              TAG       SCANNER   AGE    CRITICAL   HIGH   MEDIUM   LOW   UNKNOWN
networking         replicaset-5b5d79cdb                                            jetstack/cert-manager-webhook           v1.8.0    Trivy     22d    0          3      2        0     0
networking         replicaset-5f654bd746                                           ingress-nginx/controller                          Trivy     22d    3          14     13       0     0
networking         replicaset-5ffc85d65                                            jetstack/cert-manager-webhook           v1.5.3    Trivy     22d    0          0      0        0     0

Versions used:

Lens: 6.0.1-latest.20220810.2
Electron: 15.5.7
Chrome: 94.0.4606.81
Node: 16.5.0
MacOS: 12.4
helm.sh/chart: trivy-operator-0.1.6
Kubernetes-Version: 1.22.11

Any help appreciated.

@chen-keinan
Copy link
Contributor

@dkarnutsch can you try restart lens ?

@dkarnutsch
Copy link
Author

Yes, I tried to restart Lens a couple of times. Still no luck.

@chen-keinan
Copy link
Contributor

chen-keinan commented Aug 18, 2022

@dkarnutsch I was not able to reproduce the issue.
Can you check if it work with older version of lens and trivy-operator-lens-extension ?
For example:

  • lens version 5.0
  • trivy-operatoer-lens-extension version 5.0

@dkarnutsch
Copy link
Author

@chen-keinan It is hard to get older versions of Lens as they are not linked on the website. However, I've tried it with the following Lens version

Lens: 5.5.4-latest.20220609.2
Electron: 14.2.9
Chrome: 93.0.4577.82
Node: 14.17.0

and trivy-operator-lens-extension v0.0.5 but is is not working. I will try it with another machine as this one has Apple Silicon.

@chen-keinan
Copy link
Contributor

and trivy-operator-lens-extension v0.0.5 but is is not working. I will try it with another machine as this one has Apple Silicon.

Please do and let me know.

btw: I'm running on Apple Silicon myself and it works for me.
I'll ask my teammates to check it as well.

@dkarnutsch
Copy link
Author

It is also not working on another device. I get a couple of errors in the console, which might help:

BrowserConsole.js:47 [EXTENSIONS-LOADER]: can't load renderer for "@aquasecurity/trivy-operator-lens-extension": Error: Cannot find module '/Users/danielkarnutsch/Library/Application Support/Lens/node_modules/@aquasecurity/trivy-operator-lens-extension/dist/renderer.js'
Require stack:
- electron/js2c/renderer_init
    at Module._resolveFilename (node:internal/modules/cjs/loader:934:15)
    at Function.o._resolveFilename (node:electron/js2c/renderer_init:29:1118)
    at Module._load (node:internal/modules/cjs/loader:779:27)
    at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
    at Function.o._load (node:electron/js2c/renderer_init:29:379)
    at Module.require (node:internal/modules/cjs/loader:1006:19)
    at require (node:internal/modules/cjs/helpers:93:18)
    at ExtensionLoader.requireExtension (http://b9c501df7479e50a8b31db77f24f05fb.localhost:49250/build/Lens.js?638f230ede63077704e9:529164:20)
    at http://b9c501df7479e50a8b31db77f24f05fb.localhost:49250/build/Lens.js?638f230ede63077704e9:529104:53
    at Array.map (<anonymous>) Object
__webpack_modules__.1246.BrowserConsole.log @ BrowserConsole.js:47

@chen-keinan
Copy link
Contributor

@dkarnutsch sorry it's took too long for me to response, I will ask my coworker to test it also on a him computer as I'm unable to reproduce it on mime.

@dkarnutsch
Copy link
Author

@chen-keinan thanks for coming back!

I gave it another try and it is still not working with the following versions used:

  • Lens (Lens: 6.0.2-latest.20220908.1 Electron: 15.5.7 Chrome: 94.0.4606.81 Node: 16.5.0)
  • Trivy-Operator: 0.1.9
  • Trivy-Operator-Lens-Extension: 0.0.6

I'll also let a Co-Worker try it!

@AnthonyDewhirst
Copy link

@dkarnutsch did you get anywhere with this?
Is this repo dead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants