CenterEdge / shawarma

A Kubernetes sidecar to assist with enabling/disabling background processing during blue/green deployments.
Apache License 2.0
11 stars 4 forks source link

Allow the container to terminate gracefully #14

Closed brantburnett closed 3 years ago

brantburnett commented 3 years ago

Motivation

Currently SIGINT and SIGTERM are not handled correctly.

Modifications

Instead of triggering the stop channel, close the stop channel. This correctly signals the K8S controller to stop.

Add some additional debug logging.

Add a command line switch to use a local kubeconfig file instead of only running in-cluster. This makes local dev easier.

brantburnett commented 3 years ago

/merge