lens-extension-network-policy-viewer icon indicating copy to clipboard operation
lens-extension-network-policy-viewer copied to clipboard

I have installed this extension in lens tool but not working.

Open 2jithin opened this issue 1 year ago • 9 comments

I have installed this extension in the lens tool only this extension is not visible in the tool. I have checked the lens tool version 6++ is being used. Does anyone know where is visible in the tool or how can i use this extension?

2jithin avatar Aug 05 '23 18:08 2jithin

Checked on the latest Lens version and it is working fine, what version of Lens do you have? image

To check the extension you need to open Network -> Network Policies -> Click on Network Policy you want to view and in sidebar you will see visualisation: image

artturik avatar Aug 07 '23 22:08 artturik

I just tried to install it on latest openlens version (freshly added), it added needed item but then strange thing happened, extension status was quickly toggled between enabled/disabled also causing 100% cpu usage. All I could do was to kill openlens process. After few restarts it was ok, and extension show up in network policies. Latest openlens has some information about workaround for extensions status, maybe it's just fresh bug?

dominch avatar Aug 08 '23 08:08 dominch

Hello, I had the same cpu issue at the setup. So I have downloaded the tgz and install it from the file.

But no graph is displayed in the network policy tab. I am using:

  • Openlens 6.5.2
  • lens-extension-network-policy-viewer 3.0.0

pierreyvesv avatar Oct 09 '23 14:10 pierreyvesv

I noticed that the plugin breaks if the service is defined with targetPort aliases and then the aliases are used in the network policy manifest. Does your setup use targetPort aliases?

@artturik are targetPort definitions dereferenced/supported?

hadesto avatar Oct 25 '23 15:10 hadesto

same issue on apple silicone version

Lens: 2024.1.300751-latest
Extension API: 6.10.33
Electron: 27.2.4
Chrome: 118.0.5993.159
Node: 18.17.1

vitalyu avatar Feb 07 '24 14:02 vitalyu

Testing on M1. First I saw the enable/disable flickering in Lens so I tried OpenLens.

Now I don't see the expected extended view (shown above) in either OpenLens or Lens.

joebowbeer avatar Feb 25 '24 01:02 joebowbeer

I have installed OpenLens (v6.5.2-366 for Intel Mac) and was able to reproduce the bug. When I navigated to the extension installation page and entered the plugin name lens-extension-network-policy-viewer (manual installation), OpenLens asked if I wished to delete the previous installation of the plugin (which I believe was copied from the Lens directory but was in a disabled state). I agreed and then observed the flickering and CPU spike that you mentioned. After restarting the application, I deleted the plugin from OpenLens, reinstalled it, and now it is working okay. Could someone check if a clean installation (no data in app support directory or delete copied version before installing) of the plugin helps?

artturik avatar Mar 10 '24 13:03 artturik

I noticed that the plugin breaks if the service is defined with targetPort aliases and then the aliases are used in the network policy manifest. Does your setup use targetPort aliases?

@artturik are targetPort definitions dereferenced/supported?

The plugin does not use service definitions at all and as far as I know NetworkPolicy manifest does not support targetPort

artturik avatar Mar 10 '24 13:03 artturik

for me (apple m1) it draws something but turns grey and you cant move or refresh the view. or it shows an zoomed out part without zoom control Bildschirmfoto 2024-04-19 um 12 37 20 i was able to move the diagram with command+mouse but still no zoom or way to enlarge the drawing area.

tronicum avatar Apr 19 '24 10:04 tronicum