In querying APIs, failed to list secret and cannot show the result.
When I try to run kubectl tree with viewer role, got the following error:
Error: error while querying api objects: listing resources failed (/v1, Resource=secrets):
secrets is forbidden: User "user@example.com" cannot list resource "secrets" in API group "" at the cluster scope: Required "container.secrets.list" permission.
In querying APIs, failed to list
secretand cannot show the result.When I try to run kubectl tree with viewer role, got the following error: