Skip to content

Commit 6e46b9e

Browse files
authored
Merge pull request #48439 from sreeram-venkitesh/4818-allow-zero-for-prestop-hook
KEP 4818: PodLifecycleSleepActionAllowZero
2 parents 5ea7951 + 49e252c commit 6e46b9e

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

content/en/docs/concepts/containers/container-lifecycle-hooks.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ Resources consumed by the command are counted against the Container.
5858
* Sleep - Pauses the container for a specified duration.
5959
This is a beta-level feature default enabled by the `PodLifecycleSleepAction` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/).
6060

61+
{{< note >}}
62+
Enable the `PodLifecycleSleepActionAllowZero` feature gate if you want to set a sleep duration of zero seconds (effectively a no-op) for your Sleep lifecycle hooks.
63+
{{< /note >}}
64+
6165
### Hook handler execution
6266

6367
When a Container lifecycle management hook is called,
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: PodLifecycleSleepActionAllowZero
3+
content_type: feature_gate
4+
_build:
5+
list: never
6+
render: false
7+
8+
stages:
9+
- stage: alpha
10+
defaultValue: false
11+
fromVersion: "1.32"
12+
---
13+
Enables setting zero value for the `sleep` action in [container lifecycle hooks](/docs/concepts/containers/container-lifecycle-hooks/).

0 commit comments

Comments
 (0)