Skip to content

Commit c9654bb

Browse files
authored
🌱 clusterctl: add nutanix ipam & runtime extensions providers (#11135)
* 🌱 clusterctl: add nutanix ipam provider * 🌱 clusterctl: add nutanix runtime extensions provider * docs: Add more info on github org prefix
1 parent 6d32337 commit c9654bb

File tree

6 files changed

+120
-70
lines changed

6 files changed

+120
-70
lines changed

cmd/clusterctl/client/config/providers_client.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,19 @@ const (
101101
// IPAM providers.
102102
const (
103103
InClusterIPAMProviderName = "in-cluster"
104+
NutanixIPAMProviderName = "nutanix"
104105
)
105106

106107
// Add-on providers.
107108
const (
108109
HelmAddonProviderName = "helm"
109110
)
110111

112+
// Runtime extensions providers.
113+
const (
114+
NutanixRuntimeExtensionsProviderName = "nutanix"
115+
)
116+
111117
// Other.
112118
const (
113119
// ProvidersConfigKey is a constant for finding provider configurations with the ProvidersClient.
@@ -422,13 +428,25 @@ func (p *providersClient) defaults() []Provider {
422428
url: "https://github.com/kubernetes-sigs/cluster-api-ipam-provider-in-cluster/releases/latest/ipam-components.yaml",
423429
providerType: clusterctlv1.IPAMProviderType,
424430
},
431+
&provider{
432+
name: NutanixIPAMProviderName,
433+
url: "https://github.com/nutanix-cloud-native/cluster-api-ipam-provider-nutanix/releases/latest/ipam-components.yaml",
434+
providerType: clusterctlv1.IPAMProviderType,
435+
},
425436

426437
// Add-on providers
427438
&provider{
428439
name: HelmAddonProviderName,
429440
url: "https://github.com/kubernetes-sigs/cluster-api-addon-provider-helm/releases/latest/addon-components.yaml",
430441
providerType: clusterctlv1.AddonProviderType,
431442
},
443+
444+
// Runtime extensions providers
445+
&provider{
446+
name: NutanixRuntimeExtensionsProviderName,
447+
url: "https://github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/releases/latest/runtime-extensions-components.yaml",
448+
providerType: clusterctlv1.RuntimeExtensionProviderType,
449+
},
432450
}
433451

434452
return defaults

cmd/clusterctl/client/config_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ func Test_clusterctlClient_GetProvidersConfig(t *testing.T) {
109109
config.VSphereProviderName,
110110
config.VultrProviderName,
111111
config.InClusterIPAMProviderName,
112+
config.NutanixIPAMProviderName,
113+
config.NutanixRuntimeExtensionsProviderName,
112114
config.HelmAddonProviderName,
113115
},
114116
wantErr: false,
@@ -174,6 +176,8 @@ func Test_clusterctlClient_GetProvidersConfig(t *testing.T) {
174176
config.VSphereProviderName,
175177
config.VultrProviderName,
176178
config.InClusterIPAMProviderName,
179+
config.NutanixIPAMProviderName,
180+
config.NutanixRuntimeExtensionsProviderName,
177181
config.HelmAddonProviderName,
178182
},
179183
wantErr: false,

0 commit comments

Comments
 (0)