Merge pull request #6918 from Ripolin/main

Add WaitForReady flag to check container readiness state before exec a hook
This commit is contained in:
Xun Jiang/Bruce Jiang
2023-10-15 13:27:34 +08:00
committed by GitHub
7 changed files with 182 additions and 77 deletions
+5
View File
@@ -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