Commit 32f7fa6
loadbalancer: Fix backend state in REST API
The new Cilium LB controlplane introduced a new property `Unhealthy` on the
backend params which allows for healthchecker extensions to report a backend
as unhealthy. The LB backend selection respects the `State` & `Unhealthy`
properties of the backend.
While introducing the new property, there was an oversight of `cilium-dbg service list`
which still shows the backend state as `active` even though the backend is reported as
`unhealthy`.
Therefore, this commit changes the LB REST API implementation to report the state
of a backend as `quarantined` if `Unhealthy==true`.
Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com>1 parent 32034ef commit 32f7fa6
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
158 | 157 | | |
159 | 158 | | |
160 | 159 | | |
161 | | - | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
162 | 167 | | |
163 | 168 | | |
164 | 169 | | |
| |||
0 commit comments