Commit a3cc4f9
feat(controller): gate auto-tiebreaker on DrbdOptions/AutoAddQuorumTiebreaker
Mirrors upstream LINSTOR's CtrlRscAutoTieBreakerHelper: the
auto-witness logic only runs when DrbdOptions/AutoAddQuorumTiebreaker
is non-false. Default is "true" (matches cozystack / piraeus-operator
behaviour where ControllerProps seeds it on cluster bootstrap), so
this is a transparent change for the common case.
Operators who place a manual DISKLESS replica disable the auto path
with `DrbdOptions/AutoAddQuorumTiebreaker: "false"` on the RD spec —
otherwise the RD reconciler races to drop a TIE_BREAKER witness on
the same target node and the explicit kubectl apply conflicts with
the auto-created witness.
`tests/e2e/auto-diskful.sh` flips the prop off to avoid this race.
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>1 parent 61da2a6 commit a3cc4f9
2 files changed
Lines changed: 42 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
128 | 135 | | |
129 | 136 | | |
130 | 137 | | |
| |||
134 | 141 | | |
135 | 142 | | |
136 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
137 | 172 | | |
138 | 173 | | |
139 | 174 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
38 | 42 | | |
| 43 | + | |
| 44 | + | |
39 | 45 | | |
40 | 46 | | |
41 | 47 | | |
| |||
0 commit comments