honeycombio / helm-charts

Helm repository and charts for Honeycomb
Apache License 2.0
30 stars 39 forks source link

feat: Refinery lifecycle #342

Closed gjacquet closed 9 months ago

gjacquet commented 9 months ago

Which problem is this PR solving?

To make rolling update smoother, it is very common to add a sleep to containers preStop lifecycle to give Kubernetes some time to reconfigure the application's service endpoints.

Short description of the changes

Allow configuring each container lifecycle.

How to verify that this has the expected result

Set values:

lifecycle: {}
    preStop:
      exec:
        command:
          - "sh"
          - "-c"
          - "sleep 10"

and check lifecycle has been configured as expected