Commit ce59ce4
committed
fix: gate readyz on webhook TLS server startup
Add webhookServer.StartedChecker() as a readyz check so the pod Ready
condition reflects actual webhook TLS availability on :9443, not just
the health endpoint being up. Replace the fragile .items[0] jsonpath
probe with kubectl wait which handles rolling restarts correctly.
Addresses review feedback from #421.
Assisted-By: Claude (Anthropic AI) <noreply@anthropic.com>
Signed-off-by: Paolo Dettori <dettori@us.ibm.com>1 parent 1564816 commit ce59ce4
2 files changed
Lines changed: 13 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
688 | 688 | | |
689 | 689 | | |
690 | 690 | | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
691 | 695 | | |
692 | 696 | | |
693 | 697 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
752 | 752 | | |
753 | 753 | | |
754 | 754 | | |
755 | | - | |
756 | | - | |
757 | | - | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
758 | 758 | | |
759 | | - | |
760 | | - | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
761 | 762 | | |
762 | | - | |
763 | | - | |
| 763 | + | |
| 764 | + | |
764 | 765 | | |
765 | | - | |
766 | | - | |
767 | | - | |
768 | | - | |
| 766 | + | |
769 | 767 | | |
770 | 768 | | |
771 | 769 | | |
0 commit comments