Skip to content

Commit

Permalink
Fixed feature gate until version and added note to container lifecycl…
Browse files Browse the repository at this point in the history
…e hooks
  • Loading branch information
sreeram-venkitesh committed Nov 18, 2024
1 parent 2c3b568 commit 49e252c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ Resources consumed by the command are counted against the Container.
* Sleep - Pauses the container for a specified duration.
This is a beta-level feature default enabled by the `PodLifecycleSleepAction` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/).

{{< note >}}
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.
{{< /note >}}

### Hook handler execution

When a Container lifecycle management hook is called,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ stages:
- stage: alpha
defaultValue: false
fromVersion: "1.32"
toVersion: "1.32"
---
Enables setting zero value for the `sleep` action in Container lifecycle hooks.
Enables setting zero value for the `sleep` action in [container lifecycle hooks](/docs/concepts/containers/container-lifecycle-hooks/).

0 comments on commit 49e252c

Please sign in to comment.