Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with subresources? #176

Open
rehevkor5 opened this issue Jul 19, 2024 · 0 comments
Open

Doesn't work with subresources? #176

rehevkor5 opened this issue Jul 19, 2024 · 0 comments
Assignees

Comments

@rehevkor5
Copy link

rehevkor5 commented Jul 19, 2024

Expected behavior

When running a command to evaluate the access matrix of a subresource such as:

% kubectl access-matrix for pods/exec --namespace foo

I would expect it to print the access matrix for the pods/exec resource.

Actual behavior

It fails with an error complaining that it finds no matches:

% kubectl access-matrix for pods/exec --namespace foo
E0719 11:55:14.963247   45477 resource.go:80] determine requested resource: no matches for /, Resource=pods/exec
% kubectl access-matrix for pods/log --namespace foo
E0719 11:58:40.311999   46620 resource.go:80] determine requested resource: no matches for /, Resource=pods/log

Steps To Reproduce

See example commands above.

Context:

% kubectl access-matrix version  
v0.5.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants