Commit 334880e
fix(consul-postgres-ha): deregister legacy Pattern B proxy IDs at sidecar startup
Survives an in-place upgrade from the previous Pattern B shape
(`Kind: connect-proxy` with ID `${parent}-sidecar-${peer}`).
`/consul/data` is a persistent volume, so the stale registration
survives container restarts; if it lingers alongside the new
inline-`SidecarService` shape, `consul connect envoy -sidecar-for`
sees two matches and refuses to render. Deregister the known legacy
IDs idempotently before each PUT.
Safe to remove this block in a future release once no live cluster
predates the inline-SidecarService landing.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent ddb2fa2 commit 334880e
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
282 | 294 | | |
283 | 295 | | |
284 | 296 | | |
| |||
0 commit comments