Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Resources consumed by the command are counted against the Container.
This is a beta-level feature default enabled by the `PodLifecycleSleepAction` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this true? Do we still need the note callout block / can we simplify?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The feature gate would be enabled by default. We can remove the callout if that makes sense and mention that Sleep action supports a value of zero from v1.33. I guess this would be okay since sleep action also is at beta stage right now and is not graduating to GA in v1.33.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I misunderstood the comment initially. The PodLifecycleSleepAction feature gate is still in beta. Since both PodLifecycleSleepAction and PodLifecycleSleepActionAllowZero feature gates are in beta and enabled by default, we can possibly simplify the callout block. Shall I add the line about the zero value in along with the description for sleep in line 59?


{{< 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.
The beta level `PodLifecycleSleepActionAllowZero` feature gate which is enabled by default from v1.33 allows you to set a sleep duration of zero seconds (effectively a no-op) for your Sleep lifecycle hooks.
{{< /note >}}

### Hook handler execution
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@ stages:
- stage: alpha
defaultValue: false
fromVersion: "1.32"
toVersion: "1.32"
- stage: beta
defaultValue: true
fromVersion: "1.33"
---
Enables setting zero value for the `sleep` action in [container lifecycle hooks](/docs/concepts/containers/container-lifecycle-hooks/).