Commit ac6e68f
committed
fix(dstack-ingress): reload haproxy only when a certificate was actually renewed
certman.py distinguishes 'renewed' (0) from 'nothing to renew' (2), but
renew-certificate.sh collapsed both to exit 0, so the renewal daemon
rebuilt the PEMs and reloaded haproxy on every 12-hour check cycle even
though certificates renew roughly every 60 days. Propagate exit 2 and
make the daemon treat only a real renewal as reload-worthy.
entrypoint.sh runs under set -e and calls renew-certificate.sh
unguarded during bootstrap, where the certificate has just been issued
and the second call now exits 2 — tolerate that explicitly so
bootstrap does not abort.1 parent 9744eab commit ac6e68f
3 files changed
Lines changed: 16 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
359 | | - | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
360 | 362 | | |
361 | | - | |
| 363 | + | |
362 | 364 | | |
363 | 365 | | |
364 | 366 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
14 | 20 | | |
15 | | - | |
16 | | - | |
| 21 | + | |
| 22 | + | |
17 | 23 | | |
18 | 24 | | |
19 | 25 | | |
| |||
0 commit comments