Skip to content

Fall back to the current cluster in the generic resource link - #688

Merged
ArnobKumarSaha merged 1 commit into
masterfrom
arnob-cluster-link
Nov 29, 2026
Merged

ArnobKumarSaha merged 1 commit into
masterfrom
arnob-cluster-link

Conversation

@ArnobKumarSaha

Copy link
Copy Markdown
Member

Cause. The Name link of genericresources formats .spec.cluster.name with %s. ClusterMetadata.Name is omitempty, so on a cluster whose metadata has no name the link becomes /${username}/%!s(<nil>)/... and the DB UI shows "Cluster not found".

Fix. Default the cluster to the ${clustername} placeholder, which the UI fills with the current cluster, as the other table definitions' links do.

Rendered with the table convertor's template functions:

  • no name / empty name: /${username}/${clustername}/kubedb.com/v1/postgreses/pg?namespace=demo
  • ace: /${username}/ace/kubedb.com/v1/postgreses/pg?namespace=demo

Signed-off-by: Arnob Kumar Saha <arnob@appscode.com>
@ArnobKumarSaha
ArnobKumarSaha merged commit ea616d6 into master Nov 29, 2026
4 of 8 checks passed
@ArnobKumarSaha
ArnobKumarSaha deleted the arnob-cluster-link branch November 29, 2026 09:35
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

Successfully merging this pull request may close these issues.

1 participant