Skip to content

Commit f76c940

Browse files
committed
Adding Addon Provider for cdk8s/CAAPC to cluster-api
1 parent 6f31905 commit f76c940

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
@@ -106,6 +106,7 @@ const (
106106

107107
// Add-on providers.
108108
const (
109+
Cdk8sAddonProviderName = "eitco-cdk8s"
109110
HelmAddonProviderName = "helm"
110111
FleetAddonProviderName = "rancher-fleet"
111112
)
@@ -441,6 +442,11 @@ func (p *providersClient) defaults() []Provider {
441442
url: "https://github.com/kubernetes-sigs/cluster-api-addon-provider-helm/releases/latest/addon-components.yaml",
442443
providerType: clusterctlv1.AddonProviderType,
443444
},
445+
&provider{
446+
name: Cdk8sAddonProviderName,
447+
url: "https://github.com/eitco/cluster-api-addon-provider-cdk8s/releases/latest/addon-components.yaml",
448+
providerType: clusterctlv1.AddonProviderType,
449+
},
444450

445451
// Runtime extensions providers
446452
&provider{

cmd/clusterctl/client/config_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ func Test_clusterctlClient_GetProvidersConfig(t *testing.T) {
109109
config.InClusterIPAMProviderName,
110110
config.NutanixIPAMProviderName,
111111
config.NutanixRuntimeExtensionsProviderName,
112+
config.Cdk8sAddonProviderName,
112113
config.HelmAddonProviderName,
113114
config.FleetAddonProviderName,
114115
},
@@ -176,6 +177,7 @@ func Test_clusterctlClient_GetProvidersConfig(t *testing.T) {
176177
config.InClusterIPAMProviderName,
177178
config.NutanixIPAMProviderName,
178179
config.NutanixRuntimeExtensionsProviderName,
180+
config.Cdk8sAddonProviderName,
179181
config.HelmAddonProviderName,
180182
config.FleetAddonProviderName,
181183
},

cmd/clusterctl/cmd/config_repositories_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ vultr-vultr InfrastructureProvider https://github.com/vultr/clus
155155
in-cluster IPAMProvider https://github.com/kubernetes-sigs/cluster-api-ipam-provider-in-cluster/releases/latest/ ipam-components.yaml
156156
nutanix IPAMProvider https://github.com/nutanix-cloud-native/cluster-api-ipam-provider-nutanix/releases/latest/ ipam-components.yaml
157157
nutanix RuntimeExtensionProvider https://github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/releases/latest/ runtime-extensions-components.yaml
158+
eitco-cdk8s AddonProvider https://github.com/eitco/cluster-api-addon-provider-cdk8s/releases/latest/ addon-components.yaml
158159
helm AddonProvider https://github.com/kubernetes-sigs/cluster-api-addon-provider-helm/releases/latest/ addon-components.yaml
159160
rancher-fleet AddonProvider https://github.com/rancher-sandbox/cluster-api-addon-provider-fleet/releases/latest/ addon-components.yaml
160161
`
@@ -383,6 +384,10 @@ var expectedOutputYaml = `- File: core_components.yaml
383384
Name: nutanix
384385
ProviderType: RuntimeExtensionProvider
385386
URL: https://github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/releases/latest/
387+
- File: addon-components.yaml
388+
Name: eitco-cdk8s
389+
ProviderType: AddonProvider
390+
URL: https://github.com/eitco/cluster-api-addon-provider-cdk8s/releases/latest/
386391
- File: addon-components.yaml
387392
Name: helm
388393
ProviderType: AddonProvider

docs/book/src/reference/providers.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ source of inspiration and ideas for others.
7878
## Addon
7979
- [Fleet](https://github.com/rancher-sandbox/cluster-api-addon-provider-fleet/)
8080
- [Helm](https://github.com/kubernetes-sigs/cluster-api-addon-provider-helm/)
81+
- [Cdk8s](https://github.com/eitco/cluster-api-addon-provider-cdk8s/)
8182

8283
## Runtime Extensions
8384
- [Nutanix](https://github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/)

docs/release/role-handbooks/communications/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ We should inform at least the following providers via a new issue on their respe
182182

183183
* Addon provider fleet: https://github.com/rancher-sandbox/cluster-api-addon-provider-fleet/issues/new
184184
* Addon provider helm: https://github.com/kubernetes-sigs/cluster-api-addon-provider-helm/issues/new
185+
* Addon provider cdk8s: https://github.com/eitco/cluster-api-addon-provider-cdk8s/issues/new
185186
* AWS: https://github.com/kubernetes-sigs/cluster-api-provider-aws/issues/new
186187
* Azure: https://github.com/kubernetes-sigs/cluster-api-provider-azure/issues/new
187188
* Cloudstack: https://github.com/kubernetes-sigs/cluster-api-provider-cloudstack/issues/new

0 commit comments

Comments
 (0)