Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Add hint for pod/exec RBAC resource to k8s_exec #339

Closed
stiller-leser opened this issue Jan 7, 2021 · 2 comments
Closed

Add hint for pod/exec RBAC resource to k8s_exec #339

stiller-leser opened this issue Jan 7, 2021 · 2 comments
Assignees
Labels
priority/medium type/documentation Improvements or additions to documentation

Comments

@stiller-leser
Copy link

SUMMARY

When working with limited RBAC rules and the k8s_exec module it would be very helpful to be aware of the requirement to add

- apiGroups:
  - ""
  resources:
  - pods/exec
  verbs:
  - create
  - get

to the RBAC rule. I for one was not aware of the sub-resouces.

Happy to add it myself, but I am not sure how the documentation is generated.

ISSUE TYPE
  • Documentation Report
COMPONENT NAME

community.kubernetes.k8s_exec

@Akasurde
Copy link
Member

Akasurde commented Jan 7, 2021

@stiller-leser Thanks for reporting this. Would you be interested in raising PR? thanks.

@Akasurde Akasurde added the type/documentation Improvements or additions to documentation label Jan 7, 2021
@stiller-leser
Copy link
Author

Happy to add it myself, but I am not sure how the documentation is generated. ;)

Am I right to assume that I would only need do add something like this here: https://github.com/ansible-collections/community.kubernetes/blob/main/plugins/modules/k8s_exec.py#L32

rbac verbs required:
  - pods/exec resource
     - create
     - get

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
priority/medium type/documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

5 participants