concourse / concourse-chart

Helm chart to install Concourse
Apache License 2.0
143 stars 174 forks source link

resend shutdownSignal to keep the state:retiring #347

Open ewuknadierf opened 9 months ago

ewuknadierf commented 9 months ago

Existing Issue

no

Why do we need this PR?

In our productive k8s clusters we observed following problem: During eviction of the Worker Pod the pre-stop-hook.sh was triggered as expected. With fly -t infra workers we could verify, that the worker state changed to "retiring". But suddenly, the state changed back to running, for whatever reason. Thus, the worker, even if it was in pod state terminating accepted new incoming concourse jobs. And the worker was running until the pod.spec.terminationGracePeriodSeconds were reached.

Changes proposed in this pull request

Contributor Checklist

Reviewer Checklist

This section is intended for the core maintainers only, to track review progress. Please do not fill out this section.

  • [ ] Code reviewed
  • [ ] Topgun tests run
  • [ ] Back-port if needed
  • [ ] Is the correct branch targeted? (master or dev)