Commit 24f77fc
authored
🐛 Remove the check for
* remove the check for `HCloudCredentialsInvalid` to unblock reconcilement
Currently, we skip reconciling HCloudMachine completely if the condition
`HCloudTokenAvailable` is set to false with reason `HCloudCredentialsInvalid`.
This means that even when the CAPH controller restarts, the HCloudMachine is
not reconciled. We don't want this behaviour, as on CAPH restart we want to
reconcile all the related objects. Therefore, the early check that skips
reconciliation based on the condition is removed.
Note that this does not cause repeated reconciliation attempts with invalid
credentials as we still stop reconciling immediately after setting the
`HCloudCredentialsInvalid` condition during the normal reconcile loop.
The only difference is that we no longer prevent reconciliation from starting
based on a previously set condition.
Signed-off-by: Dhairya Arora <dhairya.arora@syself.com>
* if credentials are invalid on delete, set HCloudCredentialsInvalid condition
---------
Signed-off-by: Dhairya Arora <dhairya.arora@syself.com>HCloudCredentialsInvalid to unblock reconcilement (#1930)1 parent a271b44 commit 24f77fc
2 files changed
Lines changed: 7 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | 103 | | |
113 | 104 | | |
114 | 105 | | |
| |||
167 | 158 | | |
168 | 159 | | |
169 | 160 | | |
| 161 | + | |
| 162 | + | |
170 | 163 | | |
171 | 164 | | |
172 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
280 | 285 | | |
281 | 286 | | |
282 | 287 | | |
| |||
0 commit comments