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

[BUG] Managed Clusters not displaying when itsData is null #163

Open
krishkumar84 opened this issue Feb 15, 2025 · 1 comment
Open

[BUG] Managed Clusters not displaying when itsData is null #163

krishkumar84 opened this issue Feb 15, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@krishkumar84
Copy link
Contributor

Description

The Managed Clusters page (/its) was not displaying any clusters even when valid Kubernetes contexts were present in the system. This occurred because the component wasn't properly handling the case where itsData is null in the API response.

Steps to Reproduce

  1. Go to '/its' (Managed Clusters page)
  2. Have a local Kubernetes cluster set up with name ending in "-kubeflex"
  3. Observe that the clusters table is empty
  4. Check the API response in browser console showing:
    {
    "clusters": ["kind-kubeflex"],
    "contexts": [{
    "name": "kind-kubeflex",
    "cluster": "kind-kubeflex"
    }],
    "currentContext": "kind-kubeflex",
    "itsData": null
    }

Expected Behavior

  1. The Managed Clusters page should display local clusters when itsData is null
  2. Clusters with names ending in "-kubeflex" should be visible in the table
  3. Each cluster should show its name, labels, creation time, context, and status

Actual Behavior

  1. The Managed Clusters page shows "Managed Clusters (0)"
  2. The table is empty despite having valid clusters in the system
  3. No error messages are displayed to the user

Screenshots or Logs

[Screenshot 1: Empty Managed Clusters table]

Image

[Screenshot 2: API Response in Console]

Image

Additional Context

The issue was caused by the component not having a fallback mechanism to handle local clusters when the itsData field is null. This particularly affects development environments where local Kubernetes clusters are being used.

@krishkumar84 krishkumar84 added the bug Something isn't working label Feb 15, 2025
Copy link
Contributor

👋 Hello! @krishkumar84 Welcome to the Kubestellar.

We're excited to have you here! Please make sure to check out our contribution guide and feel free to join our Slack channel for any questions.

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
Status: In Progress
Development

Successfully merging a pull request may close this issue.

1 participant