Closed fgiloux closed 2 years ago
/assign @s-urbaniak
Step 2 was fixed by #1278.
Are you running this as the admin user?
I downloaded the latest version (main branch) and tested again and it worked as expected:
$ kubectl kcp workspace list
NAME TYPE PHASE URL
aaaa Universal Ready https://192.168.0.149:6443/clusters/root:pipelines-service:aaaa
$ kubectl kcp workspace use root:pipelines-service:bbbb
error: workspaces.tenancy.kcp.dev "bbbb" not found
Are you running this as the admin user?
Yes I was testing with the admin user
Describe the bug It is possible to use and create objects in a workspace that "does not exist".
To Reproduce Steps to reproduce the behavior:
Check the workspaces that exist
Use a workspace that does not exist
Create a resource in the workspace
Check the resource and see
clusterName: root:pipelines-service:bbbb
go one level above and check the workspaces. No bbbb workspace.
Expected behavior Ideally it would not be possible to switch to a workspace that has not been created. At least it should not be possible to create resources in such a worksapce.
Additional context