mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-11-28 03:47:34 +00:00
Promote StartupProbe to beta for 1.18
This commit is contained in:
@@ -37,7 +37,7 @@ const (
|
||||
defaultObservationTimeout = time.Minute * 4
|
||||
)
|
||||
|
||||
var _ = framework.KubeDescribe("StartupProbe [Serial] [Disruptive] [NodeAlphaFeature:StartupProbe]", func() {
|
||||
var _ = framework.KubeDescribe("StartupProbe [Serial] [Disruptive]", func() {
|
||||
f := framework.NewDefaultFramework("startup-probe-test")
|
||||
var podClient *framework.PodClient
|
||||
ginkgo.BeforeEach(func() {
|
||||
@@ -61,7 +61,7 @@ var _ = framework.KubeDescribe("StartupProbe [Serial] [Disruptive] [NodeAlphaFea
|
||||
Testname: Pod startup probe restart
|
||||
Description: A Pod is created with a failing startup probe. The Pod MUST be killed and restarted incrementing restart count to 1, even if liveness would succeed.
|
||||
*/
|
||||
framework.ConformanceIt("should be restarted startup probe fails [NodeConformance]", func() {
|
||||
ginkgo.It("should be restarted startup probe fails", func() {
|
||||
cmd := []string{"/bin/sh", "-c", "sleep 600"}
|
||||
livenessProbe := &v1.Probe{
|
||||
Handler: v1.Handler{
|
||||
@@ -90,7 +90,7 @@ var _ = framework.KubeDescribe("StartupProbe [Serial] [Disruptive] [NodeAlphaFea
|
||||
Testname: Pod liveness probe delayed (long) by startup probe
|
||||
Description: A Pod is created with failing liveness and startup probes. Liveness probe MUST NOT fail until startup probe expires.
|
||||
*/
|
||||
framework.ConformanceIt("should *not* be restarted by liveness probe because startup probe delays it [NodeConformance]", func() {
|
||||
ginkgo.It("should *not* be restarted by liveness probe because startup probe delays it", func() {
|
||||
cmd := []string{"/bin/sh", "-c", "sleep 600"}
|
||||
livenessProbe := &v1.Probe{
|
||||
Handler: v1.Handler{
|
||||
@@ -119,7 +119,7 @@ var _ = framework.KubeDescribe("StartupProbe [Serial] [Disruptive] [NodeAlphaFea
|
||||
Testname: Pod liveness probe fails after startup success
|
||||
Description: A Pod is created with failing liveness probe and delayed startup probe that uses ‘exec’ command to cat /temp/health file. The Container is started by creating /tmp/startup after 10 seconds, triggering liveness probe to fail. The Pod MUST now be killed and restarted incrementing restart count to 1.
|
||||
*/
|
||||
framework.ConformanceIt("should be restarted by liveness probe after startup probe enables it [NodeConformance]", func() {
|
||||
ginkgo.It("should be restarted by liveness probe after startup probe enables it", func() {
|
||||
cmd := []string{"/bin/sh", "-c", "sleep 10; echo ok >/tmp/startup; sleep 600"}
|
||||
livenessProbe := &v1.Probe{
|
||||
Handler: v1.Handler{
|
||||
@@ -148,7 +148,7 @@ var _ = framework.KubeDescribe("StartupProbe [Serial] [Disruptive] [NodeAlphaFea
|
||||
Testname: Pod readiness probe, delayed by startup probe
|
||||
Description: A Pod is created with startup and readiness probes. The Container is started by creating /tmp/startup after 45 seconds, delaying the ready state by this amount of time. This is similar to the "Pod readiness probe, with initial delay" test.
|
||||
*/
|
||||
framework.ConformanceIt("should not be ready until startupProbe succeeds [NodeConformance]", func() {
|
||||
ginkgo.It("should not be ready until startupProbe succeeds", func() {
|
||||
cmd := []string{"/bin/sh", "-c", "echo ok >/tmp/health; sleep 45; echo ok >/tmp/startup; sleep 600"}
|
||||
readinessProbe := &v1.Probe{
|
||||
Handler: v1.Handler{
|
||||
|
||||
Reference in New Issue
Block a user