Skip to content

Commit

Permalink
Merge pull request #11829 from k8s-infra-cherrypick-robot/cherry-pick…
Browse files Browse the repository at this point in the history
…-11806-to-release-1.9
  • Loading branch information
sbueringer authored Feb 11, 2025
2 parents c3df07c + b98ed8c commit 8df2e07
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cmd/clusterctl/client/config/providers_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ const (

// Add-on providers.
const (
HelmAddonProviderName = "helm"
HelmAddonProviderName = "helm"
FleetAddonProviderName = "rancher-fleet"
)

// Runtime extensions providers.
Expand Down Expand Up @@ -442,6 +443,11 @@ func (p *providersClient) defaults() []Provider {
},

// Add-on providers
&provider{
name: FleetAddonProviderName,
url: "https://github.com/rancher-sandbox/cluster-api-addon-provider-fleet/releases/latest/addon-components.yaml",
providerType: clusterctlv1.AddonProviderType,
},
&provider{
name: HelmAddonProviderName,
url: "https://github.com/kubernetes-sigs/cluster-api-addon-provider-helm/releases/latest/addon-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 @@ -113,6 +113,7 @@ func Test_clusterctlClient_GetProvidersConfig(t *testing.T) {
config.NutanixIPAMProviderName,
config.NutanixRuntimeExtensionsProviderName,
config.HelmAddonProviderName,
config.FleetAddonProviderName,
},
wantErr: false,
},
Expand Down Expand Up @@ -181,6 +182,7 @@ func Test_clusterctlClient_GetProvidersConfig(t *testing.T) {
config.NutanixIPAMProviderName,
config.NutanixRuntimeExtensionsProviderName,
config.HelmAddonProviderName,
config.FleetAddonProviderName,
},
wantErr: false,
},
Expand Down
5 changes: 5 additions & 0 deletions cmd/clusterctl/cmd/config_repositories_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ in-cluster IPAMProvider https://github.com/kubernetes
nutanix IPAMProvider https://github.com/nutanix-cloud-native/cluster-api-ipam-provider-nutanix/releases/latest/ ipam-components.yaml
nutanix RuntimeExtensionProvider https://github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/releases/latest/ runtime-extensions-components.yaml
helm AddonProvider https://github.com/kubernetes-sigs/cluster-api-addon-provider-helm/releases/latest/ addon-components.yaml
rancher-fleet AddonProvider https://github.com/rancher-sandbox/cluster-api-addon-provider-fleet/releases/latest/ addon-components.yaml
`

var expectedOutputYaml = `- File: core_components.yaml
Expand Down Expand Up @@ -399,4 +400,8 @@ var expectedOutputYaml = `- File: core_components.yaml
Name: helm
ProviderType: AddonProvider
URL: https://github.com/kubernetes-sigs/cluster-api-addon-provider-helm/releases/latest/
- File: addon-components.yaml
Name: rancher-fleet
ProviderType: AddonProvider
URL: https://github.com/rancher-sandbox/cluster-api-addon-provider-fleet/releases/latest/
`
1 change: 1 addition & 0 deletions docs/book/src/reference/providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ updated info about which API version they are supporting.
- [Nutanix](https://github.com/nutanix-cloud-native/cluster-api-ipam-provider-nutanix)

## Addon
- [Fleet](https://github.com/rancher-sandbox/cluster-api-addon-provider-fleet/)
- [Helm](https://github.com/kubernetes-sigs/cluster-api-addon-provider-helm/)

## Runtime Extensions
Expand Down
1 change: 1 addition & 0 deletions docs/release/role-handbooks/communications/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ The goal of this task is to inform all providers that a new beta.0 version a rel

We should inform at least the following providers via a new issue on their respective repos that a new version of CAPI is being released (provide the release date) and that the beta.0 version is ready for them to test.

* Addon provider fleet: https://github.com/rancher-sandbox/cluster-api-addon-provider-fleet/issues/new
* Addon provider helm: https://github.com/kubernetes-sigs/cluster-api-addon-provider-helm/issues/new
* AWS: https://github.com/kubernetes-sigs/cluster-api-provider-aws/issues/new
* Azure: https://github.com/kubernetes-sigs/cluster-api-provider-azure/issues/new
Expand Down

0 comments on commit 8df2e07

Please sign in to comment.