Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release-1.9] ✨ Add addon provider fleet to registry #11829

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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