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

Applications view is broken when several application instances are deployed #8153

Open
random-ua opened this issue Jan 3, 2025 · 5 comments
Labels
bug Something isn't working

Comments

@random-ua
Copy link

We have several instances of application deployed into a single namespace, each with unique instance id, version and other labels set according to rules from https://docs.k8slens.dev/using-lens/applications/ and https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/.

Lens: 2024.8.291605-latest shows everything just fine (as seen on screenshot 1)

More recent versions (e.g. Lens: 2024.11.261604-latest) show all instances as having the same version, age and instance id (screenshot 2).

This leads to other UI bugs:

  • ApplicationInstance panel shows Pods and Deployments of all instances. But is doesn't show URLs exposed via Ingresses for any of them (unlike an older version)
  • "More actions" menu is only available for the first item in list

To Reproduce
Create several deployments in a single namespace with the same app.kubernetes.io/name label but different version and app.kubernetes.io/instance, e.g.:

apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: platform-fra
    app.kubernetes.io/instance: first
    app.kubernetes.io/managed-by: ArgoCD
    app.kubernetes.io/name: platform
    app.kubernetes.io/version: 223fcd99
    argocd.argoproj.io/instance: platform
....
---
apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: platform-fra
    app.kubernetes.io/instance: second
    app.kubernetes.io/managed-by: ArgoCD
    app.kubernetes.io/name: platform
    app.kubernetes.io/version: 22222222
    argocd.argoproj.io/instance: platform

Note: argocd.argoproj.io/instance is added automatically by ArgoCD.

Environment:

  • Lens Version: 2024.11
  • OS: OSX on ARM
  • Installation method: brew

Screenshots:

From Lens: 2024.8:
screenshot1

From Lens: 2024.11:
screenshot2

@random-ua random-ua added the bug Something isn't working label Jan 3, 2025
@Christiaanvdl
Copy link

Hello @random-ua , Thank you for reaching out! I have contacted our development team regarding your issue .

@dechegaray
Copy link

@random-ua would you mind trying out our latest beta version 2024.12.182210-beta? (https://forums.k8slens.dev/t/lens-2024-12-182210-beta-release/5306).

You would need to go to Preferences -> App -> Update Channel, and switch that dropdown to Beta to obtain it, but we fixed several bugs related to our Applications tab that I believe might fix all or part of the issues reported. If you could try that out, it would be great to confirm the resolution. This beta will become stable most likely in the next 3-4 days

@random-ua
Copy link
Author

@random-ua would you mind trying out our latest beta version 2024.12.182210-beta? (https://forums.k8slens.dev/t/lens-2024-12-182210-beta-release/5306).

Tried Lens: 2024.12.182210-beta - the issue is still there

@random-ua
Copy link
Author

Could it be caused by argocd.argoproj.io/instance label ? In my case it's the same for all instances, even though app.kubernetes.io/instance is different. It's added by ArgoCD by default, not sure if it's possible to disable it.

@dechegaray
Copy link

Could it be caused by argocd.argoproj.io/instance label ? In my case it's the same for all instances, even though app.kubernetes.io/instance is different. It's added by ArgoCD by default, not sure if it's possible to disable it.

We identified that this is a bug caused by the way we are handling the labels, so it is definitely a problem on our side (independent from the argocd label). We'll be fixing this ASAP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants