Open AnthonyDewhirst opened 1 week ago
Hello @AnthonyDewhirst thank you for reaching out ! I have contacted our development team about your issue
Hello @AnthonyDewhirst. You are right, our documentation for extensions development is outdated. We did major changes to our architecture throughout this year and we are currently working on a new API that will be exposed for these purposes. When that work is finally completed we'll publish a new documentation for our users working on this area.
It would be a bit difficult to get the sample extension working given the changes we have been implementing, so my recommendation would be to wait for the new API and documentation to come out. We'll make sure it is more accurate and easier to follow.
Hi Daniel,
That's great to hear. I am loving Lens so far and look forward to this...however... I actually wasn't looking to write my own extension, only that I can't get any extensions to work at the moment as they don't seem to install.
I have been trying to use the Trivy extension and it, like another I tried, just get stuck in installing. As I would really like to use the Trivy extension and it didn't seem to be working and their devs haven't responded in a while it seems, I decided that I would try to get it working again. Hence why I started looking at what it takes to write one and if there had been changes since they wrote it.
Circling back, this brings me to a few questions:
Trivy extension at: https://github.com/aquasecurity/trivy-operator-lens-extension
Any help would be very much appreciated.
Thanks Anthony
On Tue, 12 Nov 2024 at 18:21, Daniel Echegaray @.***> wrote:
Hello @AnthonyDewhirst https://github.com/AnthonyDewhirst. You are right, our documentation for extensions development is outdated. We did major changes to our architecture throughout this year and we are currently working on a new API that will be exposed for these purposes. When that work is finally completed we'll publish a new documentation for our users working on this area.
It would be a bit difficult to get the sample extension working given the changes we have been implementing, so my recommendation would be to wait for the new API and documentation to come out. We'll make sure it is more accurate and easier to follow.
— Reply to this email directly, view it on GitHub https://github.com/lensapp/lens/issues/8118#issuecomment-2471257953, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAE44CIB5F4D4P4NJBFGAX32AJBJFAVCNFSM6AAAAABRI4DDB2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZRGI2TOOJVGM . You are receiving this because you were mentioned.Message ID: @.***>
Understood @AnthonyDewhirst.
- Should existing extensions work with Lens as it is currently or are they broken?
In general, existing extensions should still work in the version of Lens you are using. 2024.8.291605-latest
is our legacy version (a bit old already) still supporting the old extension architecture, so they should work. Having said that, since this is a third-party extension, not maintained by us, we cannot guarantee that it is operational. To be honest, given how long ago it was the last commit, not sure since when this has not been fully functional. It would be the responsibility of the author to ensure it works.
- When do you expect the work to be completed? We shipped recently a fully redesigned Lens (available through downloads only at https://k8slens.dev/) and there is an even better beta version we released last week https://forums.k8slens.dev/t/lens-2024-11-51849-beta-beta-release/3825. We are still stabilizing this new version, so as soon as that work is done we'll have a better idea on when we could ship the new extension support (still TBD).
- If the first point is the problem, how can I then go about trying to get extensions to work and know what to do to fix the Trivy one? If you are in need of some vulnerability reporting within Lens, we do offer as part of our Pro subscription a Security Center that leverages Trivy for all kind of security reporting (images, roles, kube resources, etc) -> https://docs.k8slens.dev/security-center/. You could check if it is an option for you.
You could also fork the repo and try to fix the extension yourself, but it might be a hassle given our docs are outdated, and we currently don't have the bandwidth to fix remaining issues for the legacy version on this area given the changes we are aiming to bring very soon.
We apologize for that.
Describe the bug I am trying to install the Trivy extension, but I believe it to be very out of date. This isn't the issue :-) The issue is that I am not a node developer, but decided I would try tp update the extension for them. So I went to your documentation to see if I could work out what the issue was. I started in on your getting started samples for extensions, but firstly, there doesn't seem to be windows documentation and it assumes linux/mac. But the samples haven't been touched in 3 years it seems and now I am spending my time trying to work out/ remember node work to get a working dev env for this and then to get even the sample working. Ironically, the error I get from the sample is the same issue I get from the trivy extension
To Reproduce Steps to reproduce the behavior:
Expected behavior the build to work and can see the extension working in lens.
Screenshots If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Lens: 2024.8.291605-latest Extension API: 6.10.39 Electron: 27.3.11 Chrome: 118.0.5993.159 Node: 18.17.1
Logs: When you run the application executable from command line you will see some logging output. Please paste them here:
your kubeconfig here