mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-08 06:15:40 +00:00
Add WaitForReady flag to check container readiness state before exec a hook
Signed-off-by: Ripolin <florent.david@gmail.com>
This commit is contained in:
@@ -214,6 +214,11 @@ type ExecRestoreHook struct {
|
||||
// before attempting to run the command.
|
||||
// +optional
|
||||
WaitTimeout metav1.Duration `json:"waitTimeout,omitempty"`
|
||||
|
||||
// WaitForReady ensures command will be launched when container is Ready instead of Running.
|
||||
// +optional
|
||||
// +nullable
|
||||
WaitForReady *bool `json:"waitForReady,omitempty"`
|
||||
}
|
||||
|
||||
// InitRestoreHook is a hook that adds an init container to a PodSpec to run commands before the
|
||||
|
||||
Reference in New Issue
Block a user