Skip to content

Commit

Permalink
frontend: KubeObject: Add cluster query param to getDetailsLink
Browse files Browse the repository at this point in the history
This allows links to Details views to have the cluster from where
the resource lives in when in multi cluster mode. This allows
the URL to contain the multiple clusters and for the URL to still
know which of the multiple clusters to look.

Signed-off-by: René Dudfield <[email protected]>
  • Loading branch information
illume committed Nov 4, 2024
1 parent 53c602e commit 3b2b822
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/lib/k8s/KubeObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export class KubeObject<T extends KubeObjectInterface | KubeEvent = any> {
namespace: this.getNamespace(),
name: this.getName(),
};
const link = createRouteURL(this.detailsRoute, params);
const link = createRouteURL(this.detailsRoute, params, { cluster: this.cluster });
return link;
}

Expand Down

0 comments on commit 3b2b822

Please sign in to comment.