Skip to content

Commit

Permalink
🌱 add hivelocity infra provider to clusterctl (kubernetes-sigs#10168)
Browse files Browse the repository at this point in the history
Signed-off-by: kranurag7 <81210977+kranurag7@users.noreply.github.com>
  • Loading branch information
kranurag7 committed Feb 29, 2024
1 parent 5439fa6 commit 9a357c5
Show file tree
Hide file tree
Showing 7 changed files with 74 additions and 50 deletions.
6 changes: 6 additions & 0 deletions cmd/clusterctl/client/config/providers_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const (
DOProviderName = "digitalocean"
GCPProviderName = "gcp"
HetznerProviderName = "hetzner"
HivelocityProviderName = "hivelocity-hivelocity"
OutscaleProviderName = "outscale"
IBMCloudProviderName = "ibmcloud"
InMemoryProviderName = "in-memory"
Expand Down Expand Up @@ -234,6 +235,11 @@ func (p *providersClient) defaults() []Provider {
url: "https://github.com/syself/cluster-api-provider-hetzner/releases/latest/infrastructure-components.yaml",
providerType: clusterctlv1.InfrastructureProviderType,
},
&provider{
name: HivelocityProviderName,
url: "https://github.com/hivelocity/cluster-api-provider-hivelocity/releases/latest/infrastructure-components.yaml",
providerType: clusterctlv1.InfrastructureProviderType,
},
&provider{
name: OutscaleProviderName,
url: "https://github.com/outscale/cluster-api-provider-outscale/releases/latest/infrastructure-components.yaml",
Expand Down
2 changes: 2 additions & 0 deletions cmd/clusterctl/client/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ func Test_clusterctlClient_GetProvidersConfig(t *testing.T) {
config.DockerProviderName,
config.GCPProviderName,
config.HetznerProviderName,
config.HivelocityProviderName,
config.IBMCloudProviderName,
config.InMemoryProviderName,
config.K0smotronProviderName,
Expand Down Expand Up @@ -139,6 +140,7 @@ func Test_clusterctlClient_GetProvidersConfig(t *testing.T) {
config.DockerProviderName,
config.GCPProviderName,
config.HetznerProviderName,
config.HivelocityProviderName,
config.IBMCloudProviderName,
config.InMemoryProviderName,
config.K0smotronProviderName,
Expand Down
103 changes: 54 additions & 49 deletions cmd/clusterctl/cmd/config_repositories_test.go

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/book/src/clusterctl/provider-contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ providers.
| CAPDO | cluster.x-k8s.io/provider=infrastructure-digitalocean |
| CAPG | cluster.x-k8s.io/provider=infrastructure-gcp |
| CAPH | cluster.x-k8s.io/provider=infrastructure-hetzner |
| CAPHV | cluster.x-k8s.io/provider=infrastructure-hivelocity |
| CAPIBM | cluster.x-k8s.io/provider=infrastructure-ibmcloud |
| CAPKK | cluster.x-k8s.io/provider=infrastructure-kubekey |
| CAPK | cluster.x-k8s.io/provider=infrastructure-kubevirt |
Expand Down
3 changes: 3 additions & 0 deletions docs/book/src/reference/glossary.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ Cluster API Google Cloud Provider
### CAPH
Cluster API Provider Hetzner

### CAPHV
Cluster API Provider Hivelocity

### CAPIBM
Cluster API Provider IBM Cloud

Expand Down
1 change: 1 addition & 0 deletions docs/book/src/reference/providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ updated info about which API version they are supporting.
- [Equinix Metal (formerly Packet)](https://github.com/kubernetes-sigs/cluster-api-provider-packet)
- [Google Cloud Platform (GCP)](https://github.com/kubernetes-sigs/cluster-api-provider-gcp)
- [Hetzner](https://github.com/syself/cluster-api-provider-hetzner)
- [Hivelocity](https://github.com/hivelocity/cluster-api-provider-hivelocity)
- [IBM Cloud](https://github.com/kubernetes-sigs/cluster-api-provider-ibmcloud)
- [KubeKey](https://github.com/kubesphere/kubekey)
- [KubeVirt](https://github.com/kubernetes-sigs/cluster-api-provider-kubevirt)
Expand Down
8 changes: 7 additions & 1 deletion docs/book/src/user/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ Additional documentation about experimental features can be found in [Experiment
Depending on the infrastructure provider you are planning to use, some additional prerequisites should be satisfied
before getting started with Cluster API. See below for the expected settings for common providers.
{{#tabs name:"tab-installation-infrastructure" tabs:"AWS,Azure,CloudStack,DigitalOcean,Docker,Equinix Metal,GCP,Hetzner,IBM Cloud,KubeKey,KubeVirt,Metal3,Nutanix,OCI,OpenStack,Outscale,Proxmox,VCD,vcluster,Virtink,vSphere"}}
{{#tabs name:"tab-installation-infrastructure" tabs:"AWS,Azure,CloudStack,DigitalOcean,Docker,Equinix Metal,GCP,Hetzner,Hivelocity,IBM Cloud,KubeKey,KubeVirt,Metal3,Nutanix,OCI,OpenStack,Outscale,Proxmox,VCD,vcluster,Virtink,vSphere"}}
{{#tab AWS}}
Download the latest binary of `clusterawsadm` from the [AWS provider releases]. The [clusterawsadm] command line utility assists with identity and access management (IAM) for [Cluster API Provider AWS][capa].
Expand Down Expand Up @@ -578,6 +578,11 @@ clusterctl init --infrastructure gcp
Please visit the [Hetzner project][Hetzner provider].
{{#/tab }}
{{#tab Hivelocity}}
Please visit the [Hivelocity project][Hivelocity provider].
{{#/tab }}
{{#tab IBM Cloud}}
Expand Down Expand Up @@ -1684,6 +1689,7 @@ kind delete cluster
[GCP provider]: https://github.com/kubernetes-sigs/cluster-api-provider-gcp
[Helm]: https://helm.sh/docs/intro/install/
[Hetzner provider]: https://github.com/syself/cluster-api-provider-hetzner
[Hivelocity provider]: https://github.com/hivelocity/cluster-api-provider-hivelocity
[IBM Cloud provider]: https://github.com/kubernetes-sigs/cluster-api-provider-ibmcloud
[infrastructure provider]: ../reference/glossary.md#infrastructure-provider
[kind]: https://kind.sigs.k8s.io/
Expand Down

0 comments on commit 9a357c5

Please sign in to comment.