Skip to content

Missing support for kubernetes 1.34 native preStop.sleep #2055

@schildwaechter

Description

@schildwaechter

Describe the bug
We switched from using lifecycle.preStop.exec to sleep in a shell to using the native lifecycle.preStop.sleep that became GA in Kubernetes 1.34.

But robusta shows this as

  • RobustaDeployment.spec.template.spec.containers[0].lifecycle.preStop.exec: ExecAction(command=['sleep', '10']) ➡️ None

To Reproduce
Steps to reproduce the behavior:

  1. Run Kubernetes 1.34
  2. Have a deployment with
    lifecycle:
      preStop:
        exec:
          command:
            - sleep
            - "10"
  1. Change to
    lifecycle:
      preStop:
        sleep:
          seconds: 10
  1. See the message in your notification channel

Expected behavior
See something like

  • RobustaDeployment.spec.template.spec.containers[0].lifecycle.preStop: exec: ExecAction(command=['sleep', '10']) ➡️ sleep: seconds: 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions