Skip to content

Commit 931ce27

Browse files
authored
Merge pull request #5593 from shamsher31/add-byoh-provider
✨ Add BringYourOwnHost(BYOH) provider to clusterctl
2 parents 0f347df + d4b3fba commit 931ce27

File tree

5 files changed

+15
-0
lines changed

5 files changed

+15
-0
lines changed

cmd/clusterctl/client/config/providers_client.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const (
3535
const (
3636
AWSProviderName = "aws"
3737
AzureProviderName = "azure"
38+
BYOHProviderName = "byoh"
3839
DockerProviderName = "docker"
3940
DOProviderName = "digitalocean"
4041
GCPProviderName = "gcp"
@@ -169,6 +170,11 @@ func (p *providersClient) defaults() []Provider {
169170
url: "https://github.com/spectrocloud/cluster-api-provider-maas/releases/latest/infrastructure-components.yaml",
170171
providerType: clusterctlv1.InfrastructureProviderType,
171172
},
173+
&provider{
174+
name: BYOHProviderName,
175+
url: "https://github.com/vmware-tanzu/cluster-api-provider-bringyourownhost/releases/latest/infrastructure-components.yaml",
176+
providerType: clusterctlv1.InfrastructureProviderType,
177+
},
172178

173179
// Bootstrap providers
174180
&provider{

cmd/clusterctl/client/config_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ func Test_clusterctlClient_GetProvidersConfig(t *testing.T) {
6565
config.TalosControlPlaneProviderName,
6666
config.AWSProviderName,
6767
config.AzureProviderName,
68+
config.BYOHProviderName,
6869
config.DOProviderName,
6970
config.DockerProviderName,
7071
config.GCPProviderName,
@@ -96,6 +97,7 @@ func Test_clusterctlClient_GetProvidersConfig(t *testing.T) {
9697
config.TalosControlPlaneProviderName,
9798
config.AWSProviderName,
9899
config.AzureProviderName,
100+
config.BYOHProviderName,
99101
config.DOProviderName,
100102
config.DockerProviderName,
101103
config.GCPProviderName,

cmd/clusterctl/cmd/config_repositories_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ nested ControlPlaneProvider https://github.com/kubernetes-sigs/
111111
talos ControlPlaneProvider https://github.com/talos-systems/cluster-api-control-plane-provider-talos/releases/latest/ control-plane-components.yaml
112112
aws InfrastructureProvider my-aws-infrastructure-components.yaml
113113
azure InfrastructureProvider https://github.com/kubernetes-sigs/cluster-api-provider-azure/releases/latest/ infrastructure-components.yaml
114+
byoh InfrastructureProvider https://github.com/vmware-tanzu/cluster-api-provider-bringyourownhost/releases/latest/ infrastructure-components.yaml
114115
digitalocean InfrastructureProvider https://github.com/kubernetes-sigs/cluster-api-provider-digitalocean/releases/latest/ infrastructure-components.yaml
115116
docker InfrastructureProvider https://github.com/kubernetes-sigs/cluster-api/releases/latest/ infrastructure-components-development.yaml
116117
gcp InfrastructureProvider https://github.com/kubernetes-sigs/cluster-api-provider-gcp/releases/latest/ infrastructure-components.yaml
@@ -168,6 +169,10 @@ var expectedOutputYaml = `- File: core_components.yaml
168169
Name: azure
169170
ProviderType: InfrastructureProvider
170171
URL: https://github.com/kubernetes-sigs/cluster-api-provider-azure/releases/latest/
172+
- File: infrastructure-components.yaml
173+
Name: byoh
174+
ProviderType: InfrastructureProvider
175+
URL: https://github.com/vmware-tanzu/cluster-api-provider-bringyourownhost/releases/latest/
171176
- File: infrastructure-components.yaml
172177
Name: digitalocean
173178
ProviderType: InfrastructureProvider

docs/book/src/clusterctl/provider-contract.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ providers.
185185
|CACPK | cluster.x-k8s.io/provider=control-plane-kubeadm |
186186
|CACPN | cluster.x-k8s.io/provider=control-plane-nested |
187187
|CAPA | cluster.x-k8s.io/provider=infrastructure-aws |
188+
|CAPB | cluster.x-k8s.io/provider=infrastructure-byoh |
188189
|CAPV | cluster.x-k8s.io/provider=infrastructure-vsphere |
189190
|CAPD | cluster.x-k8s.io/provider=infrastructure-docker |
190191
|CAPM3 | cluster.x-k8s.io/provider=infrastructure-metal3 |

docs/book/src/reference/providers.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ updated info about which API version they are supporting.
1616
- [Azure](https://github.com/kubernetes-sigs/cluster-api-provider-azure)
1717
- [Azure Stack HCI](https://github.com/microsoft/cluster-api-provider-azurestackhci)
1818
- [Baidu Cloud](https://github.com/baidu/cluster-api-provider-baiducloud)
19+
- [BYOH](https://github.com/vmware-tanzu/cluster-api-provider-bringyourownhost)
1920
- [Metal3](https://github.com/metal3-io/cluster-api-provider-metal3)
2021
- [DigitalOcean](https://github.com/kubernetes-sigs/cluster-api-provider-digitalocean)
2122
- [Exoscale](https://github.com/exoscale/cluster-api-provider-exoscale)

0 commit comments

Comments
 (0)