preStop k8s lifecycle hook (config.toml)

I was looking into a way of waiting on CI job finish before terminating pod (for example for host upgrade done by container-linux-update-operator).

Found that it can be done by preStop hook from k8s https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#hook-details, but cannot find a way in gitlab-runner to specify that option.

Is there any way of doing it? If not can we implement some way of adding that king od hooks to runner pods?