Commit 786e2da
feat(infrastructure): CRD-driven operator (kro helm lifecycle + serve) (#331)
* feat(infrastructure): CRD-driven operator (kro helm lifecycle + serve)
Add an InfrastructureProvider operator: one CR declares the kro + provider
image versions and two kubeconfig Secret refs; the operator continuously
bootstraps the provider kcp workspace, lifecycles the kro Helm release via the
helm CLI (multicluster fork chart + image, kcp-apiexport mode, kind hostAliases
+ self-cluster patches behind env flags), seeds kro's kcp-kubeconfig, and owns
the provider serve Deployment.
- apis/v1alpha1: InfrastructureProvider CRD (+ generated deepcopy/CRD YAML)
- operator/: controller-runtime reconciler, helm exec, serve Deployment,
bootstrap (shared with the env-driven operator subcommand), kind dev patches
- main.go: `operator` (env-driven) + `controller` (CRD) subcommands;
serveWithConfig extracted; loadControllerConfig honors INFRASTRUCTURE_WORKSPACE_PATH
- install/operatorseed.go: seed kro from a provided kubeconfig (no SA mint)
- deploy/chart: operator Deployment + RBAC + CRD + Secrets + CR (operator.enabled),
legacy serve/Service gated off in operator mode
- Dockerfile: bundle the helm CLI for the operator pod
- Makefile + Tiltfile.cluster: operator dev flow (controller host binary;
replaces kro-mgmt-up + infrastructure-init), --validate=false on register
- README: operator deploy section
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(kuery): bump provider to 788efce
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent f2063d2 commit 786e2da
29 files changed
Lines changed: 2648 additions & 121 deletions
File tree
- providers
- infrastructure
- apis/v1alpha1
- config/crds
- deploy/chart
- crds
- templates
- install
- operator
- kuery
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
828 | 828 | | |
829 | 829 | | |
830 | 830 | | |
| 831 | + | |
831 | 832 | | |
832 | 833 | | |
833 | 834 | | |
834 | 835 | | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
835 | 887 | | |
836 | 888 | | |
837 | 889 | | |
| |||
985 | 1037 | | |
986 | 1038 | | |
987 | 1039 | | |
988 | | - | |
| 1040 | + | |
989 | 1041 | | |
990 | 1042 | | |
991 | 1043 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
639 | 639 | | |
640 | 640 | | |
641 | 641 | | |
| 642 | + | |
| 643 | + | |
642 | 644 | | |
643 | 645 | | |
644 | 646 | | |
| |||
647 | 649 | | |
648 | 650 | | |
649 | 651 | | |
| 652 | + | |
| 653 | + | |
650 | 654 | | |
651 | 655 | | |
652 | 656 | | |
| |||
662 | 666 | | |
663 | 667 | | |
664 | 668 | | |
665 | | - | |
666 | | - | |
667 | | - | |
668 | | - | |
669 | | - | |
670 | | - | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
671 | 677 | | |
672 | 678 | | |
673 | 679 | | |
| |||
685 | 691 | | |
686 | 692 | | |
687 | 693 | | |
688 | | - | |
689 | | - | |
690 | | - | |
691 | | - | |
692 | | - | |
693 | | - | |
694 | | - | |
695 | 694 | | |
696 | | - | |
697 | | - | |
698 | | - | |
699 | | - | |
700 | | - | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
701 | 698 | | |
702 | 699 | | |
703 | 700 | | |
| |||
752 | 749 | | |
753 | 750 | | |
754 | 751 | | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
755 | 781 | | |
756 | 782 | | |
757 | 783 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
22 | 31 | | |
23 | 32 | | |
24 | 33 | | |
| 34 | + | |
25 | 35 | | |
26 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
27 | 43 | | |
28 | 44 | | |
0 commit comments