Commit b2750f5
Refactor health check probe result handling
Simplify the probe result collection logic by:
- Collecting all probe results upfront, regardless of healthChecker
- Checking for empty results based on FieldResults length
- Removing unnecessary tracking of empty probe fields
- Updating test expectations for multi-probe scenarios
This makes the code cleaner and maintains the fix for supporting
partial probe results with multi-probe configurations.
Signed-off-by: Jia Zhu <[email protected]>
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
Signed-off-by: zhujian <[email protected]>1 parent 38c5bec commit b2750f5
File tree
2 files changed
+8
-18
lines changed- pkg/addonmanager/controllers/agentdeploy
- test/integration/kube
2 files changed
+8
-18
lines changedLines changed: 6 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
191 | | - | |
| 190 | + | |
192 | 191 | | |
193 | 192 | | |
194 | 193 | | |
195 | 194 | | |
196 | 195 | | |
197 | 196 | | |
198 | | - | |
199 | 197 | | |
200 | 198 | | |
201 | 199 | | |
| 200 | + | |
202 | 201 | | |
203 | 202 | | |
204 | | - | |
205 | 203 | | |
206 | 204 | | |
207 | 205 | | |
| |||
231 | 229 | | |
232 | 230 | | |
233 | 231 | | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
| 232 | + | |
243 | 233 | | |
244 | 234 | | |
245 | 235 | | |
246 | 236 | | |
247 | | - | |
| 237 | + | |
248 | 238 | | |
249 | 239 | | |
250 | 240 | | |
251 | 241 | | |
252 | | - | |
| 242 | + | |
253 | 243 | | |
254 | 244 | | |
255 | 245 | | |
256 | | - | |
| 246 | + | |
257 | 247 | | |
258 | 248 | | |
259 | 249 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
922 | 922 | | |
923 | 923 | | |
924 | 924 | | |
925 | | - | |
926 | | - | |
| 925 | + | |
| 926 | + | |
927 | 927 | | |
928 | 928 | | |
929 | 929 | | |
| |||
0 commit comments