Skip to content

bug: workspace deletion block ws tree command across all levels #3834

@MuneebAijaz

Description

@MuneebAijaz

Describe the bug

If any of the workspaces is in deletion, it will throw errors on kubectl ws tree command on all levels.

Error: forbidden: User "" cannot get path "/clusters/root:parent-0:child-0/apis/tenancy.kcp.io/v1alpha1/workspaces": workspace access not permitted

Steps To Reproduce

  1. Create a workspace parent inside root workspace
  2. Create another workspace child inside the newly created parent workspace
  3. Delete the child workspace
  4. While its deleting, go back to the root workspace, and try kubectl ws tree

Expected Behaviour

kubectl ws tree should be functional at all levels despite deletion of any workspace

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    Status

    New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions