Skip to content

Commit 7b5d4b0

Browse files
authored
Merge pull request #12332 from PatrickLaabs/12330
✨ Adding Addon Provider for cdk8s (CAAPC) to cluster-api
2 parents c30eaea + f76c940 commit 7b5d4b0

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
@@ -107,6 +107,7 @@ const (
107107

108108
// Add-on providers.
109109
const (
110+
Cdk8sAddonProviderName = "eitco-cdk8s"
110111
HelmAddonProviderName = "helm"
111112
FleetAddonProviderName = "rancher-fleet"
112113
)
@@ -447,6 +448,11 @@ func (p *providersClient) defaults() []Provider {
447448
url: "https://github.com/kubernetes-sigs/cluster-api-addon-provider-helm/releases/latest/addon-components.yaml",
448449
providerType: clusterctlv1.AddonProviderType,
449450
},
451+
&provider{
452+
name: Cdk8sAddonProviderName,
453+
url: "https://github.com/eitco/cluster-api-addon-provider-cdk8s/releases/latest/addon-components.yaml",
454+
providerType: clusterctlv1.AddonProviderType,
455+
},
450456

451457
// Runtime extensions providers
452458
&provider{

cmd/clusterctl/client/config_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ func Test_clusterctlClient_GetProvidersConfig(t *testing.T) {
110110
config.InClusterIPAMProviderName,
111111
config.NutanixIPAMProviderName,
112112
config.NutanixRuntimeExtensionsProviderName,
113+
config.Cdk8sAddonProviderName,
113114
config.HelmAddonProviderName,
114115
config.FleetAddonProviderName,
115116
},
@@ -178,6 +179,7 @@ func Test_clusterctlClient_GetProvidersConfig(t *testing.T) {
178179
config.InClusterIPAMProviderName,
179180
config.NutanixIPAMProviderName,
180181
config.NutanixRuntimeExtensionsProviderName,
182+
config.Cdk8sAddonProviderName,
181183
config.HelmAddonProviderName,
182184
config.FleetAddonProviderName,
183185
},

cmd/clusterctl/cmd/config_repositories_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ vultr-vultr InfrastructureProvider https://github.com/vultr/clus
156156
in-cluster IPAMProvider https://github.com/kubernetes-sigs/cluster-api-ipam-provider-in-cluster/releases/latest/ ipam-components.yaml
157157
nutanix IPAMProvider https://github.com/nutanix-cloud-native/cluster-api-ipam-provider-nutanix/releases/latest/ ipam-components.yaml
158158
nutanix RuntimeExtensionProvider https://github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/releases/latest/ runtime-extensions-components.yaml
159+
eitco-cdk8s AddonProvider https://github.com/eitco/cluster-api-addon-provider-cdk8s/releases/latest/ addon-components.yaml
159160
helm AddonProvider https://github.com/kubernetes-sigs/cluster-api-addon-provider-helm/releases/latest/ addon-components.yaml
160161
rancher-fleet AddonProvider https://github.com/rancher-sandbox/cluster-api-addon-provider-fleet/releases/latest/ addon-components.yaml
161162
`
@@ -388,6 +389,10 @@ var expectedOutputYaml = `- File: core_components.yaml
388389
Name: nutanix
389390
ProviderType: RuntimeExtensionProvider
390391
URL: https://github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/releases/latest/
392+
- File: addon-components.yaml
393+
Name: eitco-cdk8s
394+
ProviderType: AddonProvider
395+
URL: https://github.com/eitco/cluster-api-addon-provider-cdk8s/releases/latest/
391396
- File: addon-components.yaml
392397
Name: helm
393398
ProviderType: AddonProvider

docs/book/src/reference/providers.md

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

8687
## Runtime Extensions
8788
- [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)