Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make config reloader file writes atomic (#962)
* Make config reloader file writes atomic This addresses an issue found in the Prometheus Operator, which reuses this reloader sidecar, but which then also has a second sidecar which may trigger rule-based reloads while the config sidecar is in the middle of writing out its config (in a non-atomic way): prometheus-operator/prometheus-operator#2501 I didn't add a test for this because it's hard to catch the original problem to begin with, but it has happened. Signed-off-by: Julius Volz <[email protected]> * Explicitly ignore os.Remove() error Signed-off-by: Julius Volz <[email protected]>
- Loading branch information