lensapp / lens

Lens - The way the world runs Kubernetes
https://k8slens.dev/
MIT License
22.56k stars 1.47k forks source link

Loading spin in Release details with high amount of Revisions #7944

Open aleonsan opened 1 year ago

aleonsan commented 1 year ago

Describe the bug Going to see a Helm Release detail with a decent amount of revisions show the spinner "ad eternum".

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Helm' > 'Releases'
  2. Click on an specific release with high number of revisions to see it details.
  3. This unfolds a lateral "bar" to see the details of the Helm release (chart, namespace, version,status, values ...).
  4. The details of the release are not shown as the spinner is displayed forever.

Expected behavior The details of the Helm Release are displayed as expected.

Screenshots image

Environment:

Logs:

info: [CONTEXT-HANDLER]: using helm14 as prometheus provider for clusterId=*****************
debug: [CLUSTER]: listing helm releases for clusterId=***************** {"namespace":"tools"}
debug: [CLUSTER]: listing helm releases for clusterId=***************** {"namespace":"tools"}
info: [CLUSTER]: refresh {"accessible":true,"disconnected":false,"id":"*****************","name":"arn:aws:eks:eu-west-1:*****************:cluster/dev-common-v2","online":true,"ready":true}
info: [CLUSTER]: refresh {"accessible":true,"disconnected":false,"id":"*****************","name":"arn:aws:eks:eu-west-1:*****************:cluster/core-infra-v2","online":true,"ready":true}
info: [CLUSTER]: refresh {"accessible":true,"disconnected":false,"id":"*****************","name":"arn:aws:eks:eu-west-1:*****************:cluster/prod-common-v2","online":true,"ready":true}
debug: [CLUSTER]: listing helm releases for clusterId=***************** {"namespace":"*****************"}
debug: [CLUSTER]: listing helm releases for clusterId=***************** {"namespace":"*****************"}
debug: [CLUSTER]: listing helm releases for clusterId=***************** {"namespace":"*****************"}
info: [CLUSTER]: refresh {"accessible":true,"disconnected":false,"id":"*****************","name":"arn:aws:eks:eu-west-1:*****************:cluster/dev-common-v2","online":true,"ready":true}
info: [CLUSTER]: refresh {"accessible":true,"disconnected":false,"id":"*****************","name":"arn:aws:eks:eu-west-1:*****************:cluster/core-infra-v2","online":true,"ready":true}
info: [CLUSTER]: refresh {"accessible":true,"disconnected":false,"id":"*****************","name":"arn:aws:eks:eu-west-1:*****************:cluster/prod-common-v2","online":true,"ready":true}

I can see this error happening eventually

warn: [LENS-SPACES-EXTENSION]: (from:onRefreshTokenError) 29/09/2023, 13:36:01 InvalidGrantError error, reset Lens state and set connected=false... invalid_grant (Session doesn't have required client) {"stack":"Error: invalid_grant (Session doesn't have required client)\n    at e.numOfAttempts [as request] (/opt/Lens/resources/app.asar/node_modules/@lensapp/lenscloud-lens-extension/dist/main.js:2:1126661)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"}
info: [LENS-SPACES-EXTENSION]: (from:resetSpaceSyncer) Clearing spaces/k8sClusters...

Kubeconfig: N/A

Additional context

Sorry that I cannot add much more context or hints.