Commit 60bb01b
authored
beta: managed control plane on hetzner (#3895)
* Adjust the API to managed CP proposal
* Add HetznerControlPlane API
* Update API references and remove KubeletConfig from NodeSettingsSpec
* Adjust NodeSet fields to be required in all API versions
* Extend HetznerLoadBalancer with location, networkName, publicIP, and labels
- Add new fields to HetznerLoadBalancer: Location, NetworkName, PublicIP, and Labels
- Update API docs and proposals to reflect new fields and their defaults
- Update conversion and deepcopy methods to handle new fields
- Make Name and Type fields optional with sensible defaults
* Remove NetworkName field from HetznerLoadBalancer
- Removed the NetworkName field from HetznerLoadBalancer structs in all API versions and related conversion functions.
- Updated API documentation to reflect the removal.
- Added validation to require networkID when controlPlane is specified in HetznerSpec.
* Change NodeSettingsSpec.Annotations from []string to map[string]string
* Provisioner package
* Update hcloud-go to v2.30.0
* Create hetzner control plane
* Update github.com/hetznercloud/hcloud-go/v2
* Fix linter warnings
Signed-off-by: Artiom Diomin <artiom@kubermatic.com>
* read terraform outputs directly from state file when available
Signed-off-by: Artiom Diomin <artiom@kubermatic.com>
* improve controlPlane validation error message and add missing test cases
Signed-off-by: Artiom Diomin <artiom@kubermatic.com>
* Wrap provisioner errors
Signed-off-by: Artiom Diomin <artiom@kubermatic.com>
* go fix
Signed-off-by: Artiom Diomin <artiom@kubermatic.com>
* Create hetzner Machines and use them as Host for control plane
Signed-off-by: Artiom Diomin <artiom@kubermatic.com>
* chore: bump golangci-lint to v2.11
Signed-off-by: Artiom Diomin <artiom@kubermatic.com>
* Refactor control-plane creation code
* move cloud resource creation into the tasks
* ask for confirmation
* simplify in general
Signed-off-by: Artiom Diomin <artiom@kubermatic.com>
* Divide WithEnsureControlPlane and WithFindControlPlane
Signed-off-by: Artiom Diomin <artiom@kubermatic.com>
* provisioner: prefer IPv4 addresses and fallback to IPv6
Select machine external/internal addresses by IP family when building
provisioner output. Prefer IPv4 when available and use IPv6 as fallback
if no IPv4 address exists.
Signed-off-by: Artiom Diomin <artiom@kubermatic.com>
* Also remove implicit `IsLeader`
When building host configs from machines don't assigne IsLeader, it will
be assigned at later stages of the tasks flow.
Signed-off-by: Artiom Diomin <artiom@kubermatic.com>
* Add Hetzner MC documentation
Signed-off-by: Artiom Diomin <artiom@kubermatic.com>
* Populate control-plane data for config dump via tasks
Signed-off-by: Artiom Diomin <artiom@kubermatic.com>
* Increase the resources for build/test containers
Signed-off-by: Artiom Diomin <artiom@kubermatic.com>
---------
Signed-off-by: Artiom Diomin <artiom@kubermatic.com>1 parent cadcf3f commit 60bb01b
51 files changed
Lines changed: 4035 additions & 318 deletions
File tree
- .github/workflows
- .prow
- docs
- api_reference
- proposals
- pkg
- addons
- apis/kubeone
- config
- v1beta2
- v1beta3
- validation
- clientutil
- cloudprovider
- cmd
- initcmd
- confirmation
- fail
- localhelm
- provisioner
- tasks
- templates/kubernetesconfigs
- test/e2e
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| |||
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| 59 | + | |
| 60 | + | |
57 | 61 | | |
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
61 | 65 | | |
62 | 66 | | |
| 67 | + | |
63 | 68 | | |
64 | 69 | | |
65 | 70 | | |
66 | 71 | | |
67 | 72 | | |
68 | 73 | | |
69 | 74 | | |
| 75 | + | |
70 | 76 | | |
71 | 77 | | |
72 | 78 | | |
| |||
339 | 345 | | |
340 | 346 | | |
341 | 347 | | |
| 348 | + | |
342 | 349 | | |
343 | 350 | | |
344 | 351 | | |
| |||
529 | 536 | | |
530 | 537 | | |
531 | 538 | | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
532 | 563 | | |
533 | 564 | | |
534 | 565 | | |
535 | 566 | | |
536 | 567 | | |
537 | 568 | | |
538 | 569 | | |
| 570 | + | |
539 | 571 | | |
540 | 572 | | |
541 | 573 | | |
| |||
707 | 739 | | |
708 | 740 | | |
709 | 741 | | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
710 | 771 | | |
711 | 772 | | |
712 | 773 | | |
| |||
774 | 835 | | |
775 | 836 | | |
776 | 837 | | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
777 | 848 | | |
778 | 849 | | |
779 | 850 | | |
| |||
865 | 936 | | |
866 | 937 | | |
867 | 938 | | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
868 | 959 | | |
869 | 960 | | |
870 | 961 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| |||
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| 59 | + | |
| 60 | + | |
57 | 61 | | |
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
61 | 65 | | |
62 | 66 | | |
| 67 | + | |
63 | 68 | | |
64 | 69 | | |
65 | 70 | | |
66 | 71 | | |
67 | 72 | | |
68 | 73 | | |
| 74 | + | |
69 | 75 | | |
70 | 76 | | |
71 | 77 | | |
| |||
341 | 347 | | |
342 | 348 | | |
343 | 349 | | |
| 350 | + | |
344 | 351 | | |
345 | 352 | | |
346 | 353 | | |
| |||
531 | 538 | | |
532 | 539 | | |
533 | 540 | | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
534 | 565 | | |
535 | 566 | | |
536 | 567 | | |
537 | 568 | | |
538 | 569 | | |
539 | 570 | | |
540 | 571 | | |
| 572 | + | |
541 | 573 | | |
542 | 574 | | |
543 | 575 | | |
| |||
709 | 741 | | |
710 | 742 | | |
711 | 743 | | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
712 | 773 | | |
713 | 774 | | |
714 | 775 | | |
| |||
776 | 837 | | |
777 | 838 | | |
778 | 839 | | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
779 | 850 | | |
780 | 851 | | |
781 | 852 | | |
| |||
854 | 925 | | |
855 | 926 | | |
856 | 927 | | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
857 | 948 | | |
858 | 949 | | |
859 | 950 | | |
| |||
0 commit comments