Skip to content

Commit 19a7ec6

Browse files
committed
Add BringYourOwnHost(BYOH) provider to clusterctl
1 parent 8ab546a commit 19a7ec6

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

cmd/clusterctl/client/config/providers_client.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ const (
4545
SideroProviderName = "sidero"
4646
VSphereProviderName = "vsphere"
4747
MAASProviderName = "maas"
48+
BYOHProviderName = "byoh"
4849
)
4950

5051
// Bootstrap providers.
@@ -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
@@ -75,6 +75,7 @@ func Test_clusterctlClient_GetProvidersConfig(t *testing.T) {
7575
config.PacketProviderName,
7676
config.SideroProviderName,
7777
config.VSphereProviderName,
78+
config.BYOHProviderName,
7879
},
7980
wantErr: false,
8081
},
@@ -106,6 +107,7 @@ func Test_clusterctlClient_GetProvidersConfig(t *testing.T) {
106107
config.PacketProviderName,
107108
config.SideroProviderName,
108109
config.VSphereProviderName,
110+
config.BYOHProviderName,
109111
},
110112
wantErr: false,
111113
},

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
@@ -212,4 +213,8 @@ var expectedOutputYaml = `- File: core_components.yaml
212213
Name: vsphere
213214
ProviderType: InfrastructureProvider
214215
URL: https://github.com/kubernetes-sigs/cluster-api-provider-vsphere/releases/latest/
216+
- File: infrastructure-components.yaml
217+
Name: byoh
218+
ProviderType: InfrastructureProvider
219+
URL: https://github.com/vmware-tanzu/cluster-api-provider-bringyourownhost/releases/latest/
215220
`

0 commit comments

Comments
 (0)