Added oomkill test for init container and fix typos

This commit is contained in:
CoderSherlock
2023-07-10 18:18:30 +00:00
parent 4fa97eae1b
commit b7cbebcd03
2 changed files with 36 additions and 8 deletions

View File

@@ -109,13 +109,13 @@ func getSigkillTargetPod(podName string, ctnName string) *v1.Pod {
Image: busyboxImage,
// In the main container, SIGTERM was trapped and later /tmp/healthy
// will be created for readiness probe to verify if the trap was
// excucuted successfully
// executed successfully
Command: []string{
"sh",
"-c",
"trap \"echo SIGTERM caught\" SIGTERM SIGINT; touch /tmp/healthy; sleep 1000",
},
// Using readinessprobe to guarantee signal handler registering finished
// Using readiness probe to guarantee signal handler registering finished
ReadinessProbe: &v1.Probe{
InitialDelaySeconds: 1,
TimeoutSeconds: 2,