Skip to content

Support for container lifecycle hooks sleep #2837

@akuzia

Description

@akuzia

Description

k8s 1.29+ provides native way to add pause inside lifecycle hooks without running sleep inside exec.
Currently this provider has no way to use this functionality, there is no sleep inside various container.lifecycle.pre_stop schemas. Only exec, http_get and tcp_socket are supported.

Enhancement & K8S PR

There were changes in 1.33 that allow Zero value for sleep

Potential Terraform Configuration

lifecycle {
    pre_stop {
        sleep {
            seconds = 5
        }
     }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions