-
Notifications
You must be signed in to change notification settings - Fork 689
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert to controller runtime runnables (#4202)
- controller runtime manages controllers and other runnables (previously goroutines added to the server workgroup) - leader election now uses a combination of configmap and lease objects, in a future release we can move to just leases - controllers and other components are currently not dependent on leader election - other components (status writers) are set to be dependent on leader election - adds to the leaderelection e2e tests to check on leaderelection configmap in addition to new lease resource and events Signed-off-by: Sunjay Bhatia <sunjayb@vmware.com>
- Loading branch information
1 parent
0250de9
commit 801c194
Showing
48 changed files
with
1,264 additions
and
590 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
### Transition to controller-runtime managed leader election | ||
|
||
Contour now utilizes [controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) Manager based leader election and coordination of subroutines. | ||
With this change, Contour is also transitioning away from using a ConfigMap for leader election. | ||
In this release, Contour now uses a combination of ConfigMap and Lease object. | ||
A future release will remove usage of the ConfigMap resource for leader election. | ||
|
||
This change should be a no-op for most users, however be sure to re-apply the relevant parts of your deployment for RBAC to ensure Contour has access to Lease and Event objects (this would be the ClusterRole in the provided example YAML). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.