Open
Description
What happened:
When running the resolve shoot
command as regular project admin, it should succeed. Currently it fails with the error:
gardenctl resolve shoot
Error: failed to fetch project by namespace: failed to list projects: projects.core.gardener.cloud is forbidden: User "[email protected]" cannot list resource "projects" in API group "core.gardener.cloud" at the cluster scope
when o.CurrentTarget.ProjectName()
is not empty, it should take this value to read the project instead of calling
gardenctl-v2/pkg/cmd/resolve/options.go
Lines 239 to 242 in cd14839
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know:
Environment: