diff --git a/cmd/clusterctl/client/config/providers_client.go b/cmd/clusterctl/client/config/providers_client.go index 35f24154876f..b2ab25413d14 100644 --- a/cmd/clusterctl/client/config/providers_client.go +++ b/cmd/clusterctl/client/config/providers_client.go @@ -35,6 +35,7 @@ const ( const ( AWSProviderName = "aws" AzureProviderName = "azure" + BYOHProviderName = "byoh" DockerProviderName = "docker" DOProviderName = "digitalocean" GCPProviderName = "gcp" @@ -169,6 +170,11 @@ func (p *providersClient) defaults() []Provider { url: "https://github.com/spectrocloud/cluster-api-provider-maas/releases/latest/infrastructure-components.yaml", providerType: clusterctlv1.InfrastructureProviderType, }, + &provider{ + name: BYOHProviderName, + url: "https://github.com/vmware-tanzu/cluster-api-provider-bringyourownhost/releases/latest/infrastructure-components.yaml", + providerType: clusterctlv1.InfrastructureProviderType, + }, // Bootstrap providers &provider{ diff --git a/cmd/clusterctl/client/config_test.go b/cmd/clusterctl/client/config_test.go index bb836d58d1a1..c43fda940af4 100644 --- a/cmd/clusterctl/client/config_test.go +++ b/cmd/clusterctl/client/config_test.go @@ -65,6 +65,7 @@ func Test_clusterctlClient_GetProvidersConfig(t *testing.T) { config.TalosControlPlaneProviderName, config.AWSProviderName, config.AzureProviderName, + config.BYOHProviderName, config.DOProviderName, config.DockerProviderName, config.GCPProviderName, @@ -96,6 +97,7 @@ func Test_clusterctlClient_GetProvidersConfig(t *testing.T) { config.TalosControlPlaneProviderName, config.AWSProviderName, config.AzureProviderName, + config.BYOHProviderName, config.DOProviderName, config.DockerProviderName, config.GCPProviderName, diff --git a/cmd/clusterctl/cmd/config_repositories_test.go b/cmd/clusterctl/cmd/config_repositories_test.go index ff980c5e8aa8..669300f58487 100644 --- a/cmd/clusterctl/cmd/config_repositories_test.go +++ b/cmd/clusterctl/cmd/config_repositories_test.go @@ -111,6 +111,7 @@ nested ControlPlaneProvider https://github.com/kubernetes-sigs/ talos ControlPlaneProvider https://github.com/talos-systems/cluster-api-control-plane-provider-talos/releases/latest/ control-plane-components.yaml aws InfrastructureProvider my-aws-infrastructure-components.yaml azure InfrastructureProvider https://github.com/kubernetes-sigs/cluster-api-provider-azure/releases/latest/ infrastructure-components.yaml +byoh InfrastructureProvider https://github.com/vmware-tanzu/cluster-api-provider-bringyourownhost/releases/latest/ infrastructure-components.yaml digitalocean InfrastructureProvider https://github.com/kubernetes-sigs/cluster-api-provider-digitalocean/releases/latest/ infrastructure-components.yaml docker InfrastructureProvider https://github.com/kubernetes-sigs/cluster-api/releases/latest/ infrastructure-components-development.yaml 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 Name: azure ProviderType: InfrastructureProvider URL: https://github.com/kubernetes-sigs/cluster-api-provider-azure/releases/latest/ +- File: infrastructure-components.yaml + Name: byoh + ProviderType: InfrastructureProvider + URL: https://github.com/vmware-tanzu/cluster-api-provider-bringyourownhost/releases/latest/ - File: infrastructure-components.yaml Name: digitalocean ProviderType: InfrastructureProvider diff --git a/docs/book/src/clusterctl/provider-contract.md b/docs/book/src/clusterctl/provider-contract.md index a74b82847ce2..ba006dbe0376 100644 --- a/docs/book/src/clusterctl/provider-contract.md +++ b/docs/book/src/clusterctl/provider-contract.md @@ -185,6 +185,7 @@ providers. |CACPK | cluster.x-k8s.io/provider=control-plane-kubeadm | |CACPN | cluster.x-k8s.io/provider=control-plane-nested | |CAPA | cluster.x-k8s.io/provider=infrastructure-aws | +|CAPB | cluster.x-k8s.io/provider=infrastructure-byoh | |CAPV | cluster.x-k8s.io/provider=infrastructure-vsphere | |CAPD | cluster.x-k8s.io/provider=infrastructure-docker | |CAPM3 | cluster.x-k8s.io/provider=infrastructure-metal3 | diff --git a/docs/book/src/reference/providers.md b/docs/book/src/reference/providers.md index 06866f015dd4..364df7db0d49 100644 --- a/docs/book/src/reference/providers.md +++ b/docs/book/src/reference/providers.md @@ -16,6 +16,7 @@ updated info about which API version they are supporting. - [Azure](https://github.com/kubernetes-sigs/cluster-api-provider-azure) - [Azure Stack HCI](https://github.com/microsoft/cluster-api-provider-azurestackhci) - [Baidu Cloud](https://github.com/baidu/cluster-api-provider-baiducloud) +- [BYOH](https://github.com/vmware-tanzu/cluster-api-provider-bringyourownhost) - [Metal3](https://github.com/metal3-io/cluster-api-provider-metal3) - [DigitalOcean](https://github.com/kubernetes-sigs/cluster-api-provider-digitalocean) - [Exoscale](https://github.com/exoscale/cluster-api-provider-exoscale)