Open 2jithin opened 1 year ago
Checked on the latest Lens version and it is working fine, what version of Lens do you have?
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:
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?
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:
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?
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
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.
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?
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 usetargetPort
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
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
i was able to move the diagram with command+mouse but still no zoom or way to enlarge the drawing area.
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?