Open ameukam opened 4 years ago
Great idea. I think we can make this general enough so that it auto-reloads if the config file changes -- as config maps are seen as a flat file to Triage Party.
I took a look at this and I think there are two things to solve for here.
This appears to be pretty easy. We can take a similar approach to what Caddy did with watching for the file modification time. Another option is to use fsnotify
.
This looks more challenging and will require a bit of rework in the main server function and control logic for the goroutines.
It would great if
triage-party
can automatically reload whenever the ConfigMap is modified so that the pod doesn't need to be deleted and re-created.