You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Go to '/its' (Managed Clusters page)
Have a local Kubernetes cluster set up with name ending in "-kubeflex"
Observe that the clusters table is empty
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
The Managed Clusters page should display local clusters when itsData is null
Clusters with names ending in "-kubeflex" should be visible in the table
Each cluster should show its name, labels, creation time, context, and status
Actual Behavior
The Managed Clusters page shows "Managed Clusters (0)"
The table is empty despite having valid clusters in the system
No error messages are displayed to the user
Screenshots or Logs
[Screenshot 1: Empty Managed Clusters table]
[Screenshot 2: API Response in Console]
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.
The text was updated successfully, but these errors were encountered:
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
{
"clusters": ["kind-kubeflex"],
"contexts": [{
"name": "kind-kubeflex",
"cluster": "kind-kubeflex"
}],
"currentContext": "kind-kubeflex",
"itsData": null
}
Expected Behavior
Actual Behavior
Screenshots or Logs
[Screenshot 1: Empty Managed Clusters table]
[Screenshot 2: API Response in Console]
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.
The text was updated successfully, but these errors were encountered: