Commit fb7546d
fix: use UpdatedReplicas instead of ReadyReplicas in observeCurrentImage
ReadyReplicas requires pod readiness probes to pass, which depends on
the sidecar reporting ready via /v0/healthz. But the sidecar only
becomes ready after the MarkReady plan step runs, which is sequenced
after AwaitSpecUpdate, which reads currentImage, which requires
observeCurrentImage to succeed. Circular dependency.
UpdatedReplicas counts pods running the desired template regardless of
readiness probe status. This correctly signals "the image change took
effect" without requiring the full sidecar initialization to complete.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 2a572ba commit fb7546d
2 files changed
Lines changed: 2 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
| 200 | + | |
204 | 201 | | |
205 | 202 | | |
206 | 203 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | | - | |
253 | | - | |
254 | | - | |
| 252 | + | |
255 | 253 | | |
256 | 254 | | |
257 | 255 | | |
| |||
0 commit comments