Commit e170e52
fix(olm): declare webhookDefinitions so OLM provisions the webhook cert
The hermes manager registers admission webhooks (RegisterHermesInstanceWebhook
mutating defaulter + validating, RegisterHermesClusterDefaultsWebhook,
RegisterHermesSelfConfigWebhook) and serves TLS on the webhook server (default
port 9443), but the bundle CSV declared no spec.webhookDefinitions.
Under OLM there is no cert-manager, so OLM only provisions the webhook serving
cert and creates the Validating/MutatingWebhookConfiguration when the CSV
declares the webhooks in spec.webhookDefinitions. Without it the manager crashes
with "open /tmp/k8s-webhook-server/serving-certs/tls.crt: no such file or
directory", CrashLoopBackOff, and the OperatorHub "Full operator test" (kiwi)
install fails. This is the real blocker keeping hermes off OperatorHub.
Add one webhookDefinitions entry per registered webhook (1 mutating, 3
validating) derived from config/webhook/manifests.yaml and the api/v1
+kubebuilder:webhook markers, plus expose containerPort 9443 (webhook-server) on
the manager container so OLM wires the service to the webhook server.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 7487d80 commit e170e52
1 file changed
Lines changed: 85 additions & 0 deletions
Lines changed: 85 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
632 | 632 | | |
633 | 633 | | |
634 | 634 | | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
635 | 639 | | |
636 | 640 | | |
637 | 641 | | |
| |||
658 | 662 | | |
659 | 663 | | |
660 | 664 | | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
0 commit comments