From 079444410f66abe4e5390cdae8f46a4be7442fb1 Mon Sep 17 00:00:00 2001 From: Nolan Brubaker Date: Mon, 13 May 2019 12:24:28 -0400 Subject: [PATCH] Document that hooks don't execute within a shell (#1474) Signed-off-by: Nolan Brubaker --- docs/hooks.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/hooks.md b/docs/hooks.md index bd1c006dd..9849210c7 100644 --- a/docs/hooks.md +++ b/docs/hooks.md @@ -7,7 +7,8 @@ Velero currently supports executing commands in containers in pods during a back When performing a backup, you can specify one or more commands to execute in a container in a pod when that pod is being backed up. The commands can be configured to run *before* any custom action processing ("pre" hooks), or after all custom actions have been completed and any additional items -specified by custom action have been backed up ("post" hooks). +specified by custom action have been backed up ("post" hooks). Note that hooks are _not_ executed within a shell +on the containers. There are two ways to specify hooks: annotations on the pod itself, and in the Backup spec.