From 981493dfb6de1dbb5dbbb09d43c5188751a59cb3 Mon Sep 17 00:00:00 2001 From: Mike Graves Date: Mon, 8 Feb 2021 19:42:13 -0500 Subject: [PATCH] Add note about required permissions for k8s_exec (#361) --- changelogs/fragments/361-k8s_exec-permission-hint.yaml | 2 ++ plugins/modules/k8s_exec.py | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/361-k8s_exec-permission-hint.yaml diff --git a/changelogs/fragments/361-k8s_exec-permission-hint.yaml b/changelogs/fragments/361-k8s_exec-permission-hint.yaml new file mode 100644 index 00000000..08263ae2 --- /dev/null +++ b/changelogs/fragments/361-k8s_exec-permission-hint.yaml @@ -0,0 +1,2 @@ +minor_changes: + - k8s_exec - add a note about required permissions for the module (https://github.com/ansible-collections/community.kubernetes/issues/339). diff --git a/plugins/modules/k8s_exec.py b/plugins/modules/k8s_exec.py index e540b9b6..a2542b25 100644 --- a/plugins/modules/k8s_exec.py +++ b/plugins/modules/k8s_exec.py @@ -31,7 +31,9 @@ requirements: - "PyYAML >= 3.11" notes: -- Return code C(return_code) for the command executed is added in output in version 1.0.0. + - Return code C(return_code) for the command executed is added in output in version 1.0.0. + - The authenticated user must have at least read access to the pods resource and write access to the pods/exec resource. + options: proxy: description: