Skip to content

feat(hot reload): add file reload - #1200

Open
JasonWBrown wants to merge 3 commits into
cloudprober:mainfrom
JasonWBrown:feat/hot-reload
Open

JasonWBrown wants to merge 3 commits into
cloudprober:mainfrom
JasonWBrown:feat/hot-reload

Conversation

@JasonWBrown

Copy link
Copy Markdown

Description

This PR introduces a hot-reload mechanism for configuration files by integrating a config watcher into the main initialization flow. It adds a new goroutine to monitor configuration changes and reloads the config dynamically.

Closes #644

Motivation and Context

The motivation is to enable seamless configuration updates without restarting the Cloudprober process, improving operational agility and reducing downtime. This change lays the groundwork for more dynamic and robust configuration management.

Side Effects

Unknown probe stale probes state may still be available.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reload config file without restarting the pod

1 participant