stackabletech / operator-rs

A simple wrapper/framework around kube-rs to make implementing Operators/Controllers easier
Apache License 2.0
116 stars 12 forks source link

feat(stackable-webhook): Add shutdown signal handler #767

Closed NickLarsenNZ closed 4 months ago

NickLarsenNZ commented 4 months ago

Part of https://github.com/stackabletech/issues/issues/531

Description

Catch SIGINT (CTRL+C) and SIGTERM (sent by Kubernetes on pod deletion) signals and shutdown the Webhook server.

image

Definition of Done Checklist

# Reviewer
- [ ] Code contains useful comments
- [ ] (Integration-)Test cases added
- [ ] Documentation added or updated
- [ ] Changelog updated
- [ ] Cargo.toml only contains references to git tags (not specific commits or branches)
# Acceptance
- [ ] Feature Tracker has been updated
- [ ] Proper release label has been added