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

Using Lens 5.3 and the extension isn't working #15

Open
smolinari opened this issue Jan 12, 2022 · 7 comments
Open

Using Lens 5.3 and the extension isn't working #15

smolinari opened this issue Jan 12, 2022 · 7 comments

Comments

@smolinari
Copy link

Hi,

I'm using the newest Lens and installed the extension, but am not seeing it. I saw this issue and followed suggestions like installing as the admin etc, but nothing seems to be working.

Win 11 Pro
Lens 5.3.3
Resource Map Extension 1.0.1

Scott

@jvaibhav123
Copy link

facing similar issue in Mac OS

@Xeiro
Copy link

Xeiro commented Mar 6, 2022

Hello, same issue here.

macOS Monterey 12.2
Lens 5.4.1
Resource Map Extension 1.0.1

Can you fix it, please? :)

@smolinari
Copy link
Author

I need to report, I've now got Ubuntu Desktop running (switched from Windows for better dev experience) and as a nice side-effect Lens and the Resource Map Extension are working properly.

Scott

@Xeiro
Copy link

Xeiro commented Mar 6, 2022

So it's probably Windows and macOS issue only :)

@nevalla
Copy link
Owner

nevalla commented Mar 7, 2022

If you open Developer Console, do you see any errors?

@idaia
Copy link

idaia commented Mar 7, 2022

ERROR:gpu_init.cc(441)] Passthrough is not supported, GL is disabled

@neoeno
Copy link

neoeno commented Jun 10, 2022

When I switch to Resource Map, I get these logs/errors in the developer console:

BrowserConsole.js:41 [KUBE-API] watch (pod-3) started /api/v1/namespaces/default/pods?watch=1&resourceVersion=10288
BrowserConsole.js:41 [KUBE-API] watch (deployment-2) started /apis/apps/v1/namespaces/default/deployments?watch=1&resourceVersion=10290
BrowserConsole.js:41 [KUBE-API] watch (statefulset-2) started /apis/apps/v1/namespaces/default/statefulsets?watch=1&resourceVersion=10290
BrowserConsole.js:41 [KUBE-API] watch (daemonset-2) started /apis/apps/v1/namespaces/default/daemonsets?watch=1&resourceVersion=10290
BrowserConsole.js:41 [KUBE-API] watch (service-2) started /api/v1/namespaces/default/services?watch=1&resourceVersion=10290
BrowserConsole.js:41 [KUBE-API] watch (ingress-2) started /apis/networking.k8s.io/v1/namespaces/default/ingresses?watch=1&resourceVersion=10290
BrowserConsole.js:41 [KUBE-API] watch (persistentvolumeclaim-2) started /api/v1/namespaces/default/persistentvolumeclaims?watch=1&resourceVersion=10290
BrowserConsole.js:41 [KUBE-API] watch (configmap-2) started /api/v1/namespaces/default/configmaps?watch=1&resourceVersion=10290
BrowserConsole.js:41 [KUBE-API] watch (secret-2) started /api/v1/namespaces/default/secrets?watch=1&resourceVersion=10290
/Users/kay/.k8slens/extensions/nevalla--kube-resource-map/dist/renderer.js:7 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'forEach')
    at /Users/kay/.k8slens/extensions/nevalla--kube-resource-map/dist/renderer.js:7
    at Array.forEach (<anonymous>)
    at r.generateIngresses (/Users/kay/.k8slens/extensions/nevalla--kube-resource-map/dist/renderer.js:7)
    at r.generateChartDataSeries (/Users/kay/.k8slens/extensions/nevalla--kube-resource-map/dist/renderer.js:7)
    at r.displayChart (/Users/kay/.k8slens/extensions/nevalla--kube-resource-map/dist/renderer.js:7)
    at r.componentDidMount (/Users/kay/.k8slens/extensions/nevalla--kube-resource-map/dist/renderer.js:7)
(anonymous) @ /Users/kay/.k8slens/extensions/nevalla--kube-resource-map/dist/renderer.js:7
generateIngresses @ /Users/kay/.k8slens/extensions/nevalla--kube-resource-map/dist/renderer.js:7
generateChartDataSeries @ /Users/kay/.k8slens/extensions/nevalla--kube-resource-map/dist/renderer.js:7
displayChart @ /Users/kay/.k8slens/extensions/nevalla--kube-resource-map/dist/renderer.js:7
componentDidMount @ /Users/kay/.k8slens/extensions/nevalla--kube-resource-map/dist/renderer.js:7
async function (async)
componentDidMount @ /Users/kay/.k8slens/extensions/nevalla--kube-resource-map/dist/renderer.js:7
Yi @ react-dom.production.min.js:219
dk @ react-dom.production.min.js:259
exports.unstable_runWithPriority @ scheduler.production.min.js:18
gg @ react-dom.production.min.js:122
Uj @ react-dom.production.min.js:252
Lj @ react-dom.production.min.js:243
(anonymous) @ react-dom.production.min.js:123
exports.unstable_runWithPriority @ scheduler.production.min.js:18
gg @ react-dom.production.min.js:122
jg @ react-dom.production.min.js:123
ig @ react-dom.production.min.js:122
Hb @ react-dom.production.min.js:292
gd @ react-dom.production.min.js:73

If I dig in to the code, I end up here:

image

And then if I breakpoint on line 24906 (var t) and execute in the terminal: e.spec.rules = [] (where e is an IngressStore)

Then I get through to a visualisation. So I'm guessing there's an assumption that IngressStore.spec.rules will always be a list, but sometimes it's not.

In case it's useful, logging e.spec got me —

image

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

6 participants