mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-10 04:27:54 +00:00
Merge pull request #120464 from gjkim42/deflake-container-lifecycle-e2e-test
e2e_node: Assign enough time to finish the postStart hook
This commit is contained in:
commit
160fe010f3
@ -236,7 +236,12 @@ var _ = SIGDescribe("[NodeConformance] Containers Lifecycle ", func() {
|
|||||||
Name: regular1,
|
Name: regular1,
|
||||||
Image: busyboxImage,
|
Image: busyboxImage,
|
||||||
Command: ExecCommand(regular1, execCommand{
|
Command: ExecCommand(regular1, execCommand{
|
||||||
Delay: 2,
|
// Allocate sufficient time for its postStart hook
|
||||||
|
// to complete.
|
||||||
|
// Note that we've observed approximately a 2s
|
||||||
|
// delay before the postStart hook is called.
|
||||||
|
// 10s > 1s + 2s(estimated maximum delay) + other possible delays
|
||||||
|
Delay: 10,
|
||||||
ExitCode: 0,
|
ExitCode: 0,
|
||||||
}),
|
}),
|
||||||
Lifecycle: &v1.Lifecycle{
|
Lifecycle: &v1.Lifecycle{
|
||||||
@ -335,7 +340,12 @@ var _ = SIGDescribe("[NodeConformance] Containers Lifecycle ", func() {
|
|||||||
Name: regular1,
|
Name: regular1,
|
||||||
Image: busyboxImage,
|
Image: busyboxImage,
|
||||||
Command: ExecCommand(regular1, execCommand{
|
Command: ExecCommand(regular1, execCommand{
|
||||||
Delay: 2,
|
// Allocate sufficient time for its postStart hook
|
||||||
|
// to complete.
|
||||||
|
// Note that we've observed approximately a 2s
|
||||||
|
// delay before the postStart hook is called.
|
||||||
|
// 10s > 1s + 2s(estimated maximum delay) + other possible delays
|
||||||
|
Delay: 10,
|
||||||
ExitCode: 0,
|
ExitCode: 0,
|
||||||
}),
|
}),
|
||||||
Lifecycle: &v1.Lifecycle{
|
Lifecycle: &v1.Lifecycle{
|
||||||
|
Loading…
Reference in New Issue
Block a user