Skip to content

Ensure operators catch the shutdown signal #803

@NickLarsenNZ

Description

@NickLarsenNZ

At least secret-operator (in controller mode) doesn't catch CTRL+C (SIGINT), so when k8s is trying to shutdown the pod, it times out and gets force killed (I assume SIGKILL, at which point the code has no choice in the matter).

Tasks

Tip

This needs a little bit of thought around signalling shutdown to nested futures (eg: kube controller) so that the shutdown is graceful. IMO, the signal should be caught in fn main() and then use a channel to signal to nested things when a shutdown is requested.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions