Commit 4dfefb0
committed
🌱 Certwatcher: Don't require leaderelection
Controller-Runtime starts the certwatcher in the webhook server, which
means it always runs regardless of the current replica being leader or
not.
It turns out that kubebuilder adds it to the manager and as a result, it
only runs on leader replicas. Make it a `LeaderElectionRunnable` and
don't require leader election so that it will work correctly even if
other projects use it in ways that were not originally anticipated.1 parent 2704163 commit 4dfefb0
2 files changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
95 | 102 | | |
96 | 103 | | |
97 | 104 | | |
| |||
0 commit comments