Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
Provides support for High-Availability mode to addon-operator by means of leases and leader elections. All necessary changes are represented in examples/002-startup-global-high-availability/ directory.
What this PR does / why we need it
This pr enables addon-operator to be run in a High-Availability mode when one pod is designated as a leader and does all the heavy lifting while additional pods wait for the leader to fail and then to take over its duties.
Also, some minor changes like providing an example for HA configuration and other fixes around the repository.
Special notes for your reviewer