Skip to content

Web console tabs are broken when a deployment is named metrics #2239

@ThiefMaster

Description

@ThiefMaster

Describe the bug

When a deployment's name is metrics, viewing its details highlights the "Metrics" tab while displaying its details, and clicking any of the other tabs will put the name of the tab (yaml, pods, etc.) in the place of the URL where the deployment name should go.

FWIW this only happens when coming e.g. from the list of Deploymenmts. The path in the URL is /k8s/ns/.../deployments/metrics, and when I click e.g. on "YAML" I end up on /k8s/ns/.../deployments/yaml.
When I manually change the URL to /k8s/ns/.../deployments/metrics/yaml I get the correct view, and the tabs work as expected.

I'd expect the same bug to happen for other names that match the URL segment used by any of the tabs, such as pods, events, etc.

Version

4.18

Reproducibility

always I guess

Log Bundle

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    Projects

    Status

    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions