Skip to content

Commit 49e252c

Browse files
Fixed feature gate until version and added note to container lifecycle hooks
1 parent 2c3b568 commit 49e252c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
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,

content/en/docs/reference/command-line-tools-reference/feature-gates/pod-lifecycle-sleep-action-allow-zero.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@ stages:
99
- stage: alpha
1010
defaultValue: false
1111
fromVersion: "1.32"
12-
toVersion: "1.32"
1312
---
14-
Enables setting zero value for the `sleep` action in Container lifecycle hooks.
13+
Enables setting zero value for the `sleep` action in [container lifecycle hooks](/docs/concepts/containers/container-lifecycle-hooks/).

0 commit comments

Comments
 (0)