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

🌱 Prepare main branch for v1.10 development #11647

Merged
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
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ generate-doctoc:
TRACE=$(TRACE) ./hack/generate-doctoc.sh

.PHONY: generate-e2e-templates
generate-e2e-templates: $(KUSTOMIZE) $(addprefix generate-e2e-templates-, v0.3 v0.4 v1.0 v1.5 v1.6 v1.7 v1.8 main) ## Generate cluster templates for all versions
generate-e2e-templates: $(KUSTOMIZE) $(addprefix generate-e2e-templates-, v0.3 v0.4 v1.0 v1.5 v1.6 v1.8 v1.9 main) ## Generate cluster templates for all versions

DOCKER_TEMPLATES := test/e2e/data/infrastructure-docker
INMEMORY_TEMPLATES := test/e2e/data/infrastructure-inmemory
Expand All @@ -585,16 +585,16 @@ generate-e2e-templates-v1.6: $(KUSTOMIZE)
$(KUSTOMIZE) build $(DOCKER_TEMPLATES)/v1.6/cluster-template --load-restrictor LoadRestrictionsNone > $(DOCKER_TEMPLATES)/v1.6/cluster-template.yaml
$(KUSTOMIZE) build $(DOCKER_TEMPLATES)/v1.6/cluster-template-topology --load-restrictor LoadRestrictionsNone > $(DOCKER_TEMPLATES)/v1.6/cluster-template-topology.yaml

.PHONY: generate-e2e-templates-v1.7
generate-e2e-templates-v1.7: $(KUSTOMIZE)
$(KUSTOMIZE) build $(DOCKER_TEMPLATES)/v1.7/cluster-template --load-restrictor LoadRestrictionsNone > $(DOCKER_TEMPLATES)/v1.7/cluster-template.yaml
$(KUSTOMIZE) build $(DOCKER_TEMPLATES)/v1.7/cluster-template-topology --load-restrictor LoadRestrictionsNone > $(DOCKER_TEMPLATES)/v1.7/cluster-template-topology.yaml

.PHONY: generate-e2e-templates-v1.8
generate-e2e-templates-v1.8: $(KUSTOMIZE)
$(KUSTOMIZE) build $(DOCKER_TEMPLATES)/v1.8/cluster-template --load-restrictor LoadRestrictionsNone > $(DOCKER_TEMPLATES)/v1.8/cluster-template.yaml
$(KUSTOMIZE) build $(DOCKER_TEMPLATES)/v1.8/cluster-template-topology --load-restrictor LoadRestrictionsNone > $(DOCKER_TEMPLATES)/v1.8/cluster-template-topology.yaml

.PHONY: generate-e2e-templates-v1.9
generate-e2e-templates-v1.9: $(KUSTOMIZE)
$(KUSTOMIZE) build $(DOCKER_TEMPLATES)/v1.9/cluster-template --load-restrictor LoadRestrictionsNone > $(DOCKER_TEMPLATES)/v1.9/cluster-template.yaml
$(KUSTOMIZE) build $(DOCKER_TEMPLATES)/v1.9/cluster-template-topology --load-restrictor LoadRestrictionsNone > $(DOCKER_TEMPLATES)/v1.9/cluster-template-topology.yaml

.PHONY: generate-e2e-templates-main
generate-e2e-templates-main: $(KUSTOMIZE)
$(KUSTOMIZE) build $(DOCKER_TEMPLATES)/main/cluster-template --load-restrictor LoadRestrictionsNone > $(DOCKER_TEMPLATES)/main/cluster-template.yaml
Expand Down
13 changes: 6 additions & 7 deletions cmd/clusterctl/hack/create-local-repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,42 +54,41 @@
providers = {
'cluster-api': {
'componentsFile': 'core-components.yaml',
'nextVersion': 'v1.9.99',
'nextVersion': 'v1.10.99',
'type': 'CoreProvider',
},
'bootstrap-kubeadm': {
'componentsFile': 'bootstrap-components.yaml',
'nextVersion': 'v1.9.99',
'nextVersion': 'v1.10.99',
'type': 'BootstrapProvider',
'configFolder': 'bootstrap/kubeadm/config/default',
},
'control-plane-kubeadm': {
'componentsFile': 'control-plane-components.yaml',
'nextVersion': 'v1.9.99',
'nextVersion': 'v1.10.99',
'type': 'ControlPlaneProvider',
'configFolder': 'controlplane/kubeadm/config/default',
},
'infrastructure-docker': {
'componentsFile': 'infrastructure-components-development.yaml',
'nextVersion': 'v1.9.99',
'nextVersion': 'v1.10.99',
'type': 'InfrastructureProvider',
'configFolder': 'test/infrastructure/docker/config/default',
},
'infrastructure-in-memory': {
'componentsFile': 'infrastructure-components-in-memory-development.yaml',
'nextVersion': 'v1.9.99',
'nextVersion': 'v1.10.99',
'type': 'InfrastructureProvider',
'configFolder': 'test/infrastructure/inmemory/config/default',
},
'runtime-extension-test': {
'componentsFile': 'runtime-extension-components-development.yaml',
'nextVersion': 'v1.9.99',
'nextVersion': 'v1.10.99',
'type': 'RuntimeExtensionProvider',
'configFolder': 'test/extension/config/default',
},
}


def load_settings():
global settings
try:
Expand Down
4 changes: 2 additions & 2 deletions docs/release/role-handbooks/release-lead/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ This comes down to changing occurrences of the old version to the new version, e

Prior art:

* 1.9 - https://github.com/kubernetes-sigs/cluster-api/pull/11059
* 1.10 - https://github.com/kubernetes-sigs/cluster-api/pull/...
sbueringer marked this conversation as resolved.
Show resolved Hide resolved

### Create a new GitHub milestone for the next release

Expand Down Expand Up @@ -267,4 +267,4 @@ Additional information:
The following steps can be taken:
- Edit improvement tasks board name for current cycle (e.g. `CAPI vX.Y release improvement tasks`)
- Add/move all individual missing issues to the board
* Tasks that improve release automation, tooling & related developer docs are ideal candidates and should be prioritized.
* Tasks that improve release automation, tooling & related developer docs are ideal candidates and should be prioritized.
2 changes: 1 addition & 1 deletion hack/tools/internal/tilt-prepare/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const (

var (
// Defines the default version to be used for the provider CR if no version is specified in the tilt-provider.yaml|json file.
defaultProviderVersion = "v1.9.99"
defaultProviderVersion = "v1.10.99"

// This data struct mirrors a subset of info from the providers struct in the tilt file
// which is containing "hard-coded" tilt-provider.yaml files for the providers managed in the Cluster API repository.
Expand Down
3 changes: 3 additions & 0 deletions metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
apiVersion: clusterctl.cluster.x-k8s.io/v1alpha3
kind: Metadata
releaseSeries:
- major: 1
minor: 10
contract: v1beta1
- major: 1
minor: 9
contract: v1beta1
Expand Down
28 changes: 14 additions & 14 deletions test/e2e/clusterctl_upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,9 @@ var _ = Describe("When testing clusterctl upgrades (v1.0=>current)", func() {
})

// Note: This test should be changed during "prepare main branch", it should test n-2 => current.
var _ = Describe("When testing clusterctl upgrades using ClusterClass (v1.7=>current) [ClusterClass]", func() {
// Get v1.7 latest stable release
version := "1.7"
var _ = Describe("When testing clusterctl upgrades using ClusterClass (v1.8=>current) [ClusterClass]", func() {
// Get n-2 latest stable release
version := "1.8"
stableRelease, err := GetStableReleaseOfMinor(ctx, version)
Expect(err).ToNot(HaveOccurred(), "Failed to get stable version for minor release : %s", version)
ClusterctlUpgradeSpec(ctx, func() ClusterctlUpgradeSpecInput {
Expand All @@ -241,8 +241,8 @@ var _ = Describe("When testing clusterctl upgrades using ClusterClass (v1.7=>cur
InitWithInfrastructureProviders: []string{fmt.Sprintf(providerDockerPrefix, stableRelease)},
InitWithProvidersContract: "v1beta1",
// Note: Both InitWithKubernetesVersion and WorkloadKubernetesVersion should be the highest mgmt cluster version supported by the source Cluster API version.
InitWithKubernetesVersion: "v1.30.0",
WorkloadKubernetesVersion: "v1.30.0",
InitWithKubernetesVersion: "v1.31.4",
WorkloadKubernetesVersion: "v1.31.4",
sbueringer marked this conversation as resolved.
Show resolved Hide resolved
MgmtFlavor: "topology",
WorkloadFlavor: "topology",
UseKindForManagementCluster: true,
Expand All @@ -251,9 +251,9 @@ var _ = Describe("When testing clusterctl upgrades using ClusterClass (v1.7=>cur
})

// Note: This test should be changed during "prepare main branch", it should test n-1 => current.
var _ = Describe("When testing clusterctl upgrades using ClusterClass (v1.8=>current) [ClusterClass]", func() {
// Get v1.8 latest stable release
version := "1.8"
var _ = Describe("When testing clusterctl upgrades using ClusterClass (v1.9=>current) [ClusterClass]", func() {
// Get n-1 latest stable release
version := "1.9"
stableRelease, err := GetStableReleaseOfMinor(ctx, version)
Expect(err).ToNot(HaveOccurred(), "Failed to get stable version for minor release : %s", version)
ClusterctlUpgradeSpec(ctx, func() ClusterctlUpgradeSpecInput {
Expand All @@ -267,8 +267,8 @@ var _ = Describe("When testing clusterctl upgrades using ClusterClass (v1.8=>cur
InitWithBinary: fmt.Sprintf(clusterctlDownloadURL, stableRelease),
InitWithProvidersContract: "v1beta1",
// Note: Both InitWithKubernetesVersion and WorkloadKubernetesVersion should be the highest mgmt cluster version supported by the source Cluster API version.
InitWithKubernetesVersion: "v1.31.2",
WorkloadKubernetesVersion: "v1.31.2",
InitWithKubernetesVersion: "v1.32.0",
WorkloadKubernetesVersion: "v1.32.0",
MgmtFlavor: "topology",
WorkloadFlavor: "topology",
UseKindForManagementCluster: true,
Expand All @@ -277,9 +277,9 @@ var _ = Describe("When testing clusterctl upgrades using ClusterClass (v1.8=>cur
})

// Note: This test should be changed during "prepare main branch", it should test n-1 => current.
var _ = Describe("When testing clusterctl upgrades using ClusterClass (v1.8=>current) on K8S latest ci mgmt cluster [ClusterClass]", func() {
// Get v1.8 latest stable release
version := "1.8"
var _ = Describe("When testing clusterctl upgrades using ClusterClass (v1.9=>current) on K8S latest ci mgmt cluster [ClusterClass]", func() {
// Get n-1 latest stable release
version := "1.9"
stableRelease, err := GetStableReleaseOfMinor(ctx, version)
Expect(err).ToNot(HaveOccurred(), "Failed to get stable version for minor release : %s", version)
ClusterctlUpgradeSpec(ctx, func() ClusterctlUpgradeSpecInput {
Expand All @@ -297,7 +297,7 @@ var _ = Describe("When testing clusterctl upgrades using ClusterClass (v1.8=>cur
// Note: InitWithKubernetesVersion should be the latest of the next supported kubernetes version by the target Cluster API version.
// Note: WorkloadKubernetesVersion should be the highest mgmt cluster version supported by the source Cluster API version.
InitWithKubernetesVersion: initKubernetesVersion,
WorkloadKubernetesVersion: "v1.31.2",
WorkloadKubernetesVersion: "v1.32.0",
MgmtFlavor: "topology",
WorkloadFlavor: "topology",
UseKindForManagementCluster: true,
Expand Down
80 changes: 40 additions & 40 deletions test/e2e/config/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,25 +80,25 @@ providers:
new: --metrics-addr=:8080
files:
- sourcePath: "../data/shared/v1.6/metadata.yaml"
- name: "{go://sigs.k8s.io/cluster-api@v1.7}"
fabriziopandini marked this conversation as resolved.
Show resolved Hide resolved
value: "https://github.com/kubernetes-sigs/cluster-api/releases/download/{go://sigs.k8s.io/cluster-api@v1.7}/core-components.yaml"
- name: "{go://sigs.k8s.io/cluster-api@v1.8}"
value: "https://github.com/kubernetes-sigs/cluster-api/releases/download/{go://sigs.k8s.io/cluster-api@v1.8}/core-components.yaml"
type: "url"
contract: v1beta1
replacements:
- old: --metrics-addr=127.0.0.1:8080
new: --metrics-addr=:8080
files:
- sourcePath: "../data/shared/v1.7/metadata.yaml"
- name: "{go://sigs.k8s.io/cluster-api@v1.8}"
value: "https://github.com/kubernetes-sigs/cluster-api/releases/download/{go://sigs.k8s.io/cluster-api@v1.8}/core-components.yaml"
- sourcePath: "../data/shared/v1.8/metadata.yaml"
- name: "{go://sigs.k8s.io/cluster-api@v1.9}"
value: "https://github.com/kubernetes-sigs/cluster-api/releases/download/{go://sigs.k8s.io/cluster-api@v1.9}/core-components.yaml"
type: "url"
contract: v1beta1
replacements:
- old: --metrics-addr=127.0.0.1:8080
new: --metrics-addr=:8080
files:
- sourcePath: "../data/shared/v1.8/metadata.yaml"
- name: v1.9.99 # next; use manifest from source files
- sourcePath: "../data/shared/v1.9/metadata.yaml"
- name: v1.10.99 # next; use manifest from source files
value: ../../../config/default
files:
- sourcePath: "../data/shared/main/metadata.yaml"
Expand Down Expand Up @@ -151,25 +151,25 @@ providers:
new: --metrics-addr=:8080
files:
- sourcePath: "../data/shared/v1.6/metadata.yaml"
- name: "{go://sigs.k8s.io/cluster-api@v1.7}"
value: "https://github.com/kubernetes-sigs/cluster-api/releases/download/{go://sigs.k8s.io/cluster-api@v1.7}/bootstrap-components.yaml"
- name: "{go://sigs.k8s.io/cluster-api@v1.8}"
value: "https://github.com/kubernetes-sigs/cluster-api/releases/download/{go://sigs.k8s.io/cluster-api@v1.8}/bootstrap-components.yaml"
type: "url"
contract: v1beta1
replacements:
- old: --metrics-addr=127.0.0.1:8080
new: --metrics-addr=:8080
- old: --metrics-addr=127.0.0.1:8080
new: --metrics-addr=:8080
files:
- sourcePath: "../data/shared/v1.7/metadata.yaml"
- name: "{go://sigs.k8s.io/cluster-api@v1.8}"
value: "https://github.com/kubernetes-sigs/cluster-api/releases/download/{go://sigs.k8s.io/cluster-api@v1.8}/bootstrap-components.yaml"
- sourcePath: "../data/shared/v1.8/metadata.yaml"
- name: "{go://sigs.k8s.io/cluster-api@v1.9}"
value: "https://github.com/kubernetes-sigs/cluster-api/releases/download/{go://sigs.k8s.io/cluster-api@v1.9}/bootstrap-components.yaml"
type: "url"
contract: v1beta1
replacements:
- old: --metrics-addr=127.0.0.1:8080
new: --metrics-addr=:8080
files:
- sourcePath: "../data/shared/v1.8/metadata.yaml"
- name: v1.9.99 # next; use manifest from source files
- sourcePath: "../data/shared/v1.9/metadata.yaml"
- name: v1.10.99 # next; use manifest from source files
value: ../../../bootstrap/kubeadm/config/default
files:
- sourcePath: "../data/shared/main/metadata.yaml"
Expand Down Expand Up @@ -222,25 +222,25 @@ providers:
new: --metrics-addr=:8080
files:
- sourcePath: "../data/shared/v1.6/metadata.yaml"
- name: "{go://sigs.k8s.io/cluster-api@v1.7}"
value: "https://github.com/kubernetes-sigs/cluster-api/releases/download/{go://sigs.k8s.io/cluster-api@v1.7}/control-plane-components.yaml"
- name: "{go://sigs.k8s.io/cluster-api@v1.8}"
value: "https://github.com/kubernetes-sigs/cluster-api/releases/download/{go://sigs.k8s.io/cluster-api@v1.8}/control-plane-components.yaml"
type: "url"
contract: v1beta1
replacements:
- old: --metrics-addr=127.0.0.1:8080
new: --metrics-addr=:8080
- old: --metrics-addr=127.0.0.1:8080
new: --metrics-addr=:8080
files:
- sourcePath: "../data/shared/v1.7/metadata.yaml"
- name: "{go://sigs.k8s.io/cluster-api@v1.8}"
value: "https://github.com/kubernetes-sigs/cluster-api/releases/download/{go://sigs.k8s.io/cluster-api@v1.8}/control-plane-components.yaml"
- sourcePath: "../data/shared/v1.8/metadata.yaml"
- name: "{go://sigs.k8s.io/cluster-api@v1.9}"
value: "https://github.com/kubernetes-sigs/cluster-api/releases/download/{go://sigs.k8s.io/cluster-api@v1.9}/control-plane-components.yaml"
type: "url"
contract: v1beta1
replacements:
- old: --metrics-addr=127.0.0.1:8080
new: --metrics-addr=:8080
files:
- sourcePath: "../data/shared/v1.8/metadata.yaml"
- name: v1.9.99 # next; use manifest from source files
- sourcePath: "../data/shared/v1.9/metadata.yaml"
- name: v1.10.99 # next; use manifest from source files
value: ../../../controlplane/kubeadm/config/default
files:
- sourcePath: "../data/shared/main/metadata.yaml"
Expand Down Expand Up @@ -302,18 +302,6 @@ providers:
- sourcePath: "../data/infrastructure-docker/v1.6/cluster-template.yaml"
- sourcePath: "../data/infrastructure-docker/v1.6/cluster-template-topology.yaml"
- sourcePath: "../data/infrastructure-docker/v1.6/clusterclass-quick-start.yaml"
- name: "{go://sigs.k8s.io/cluster-api@v1.7}"
value: "https://github.com/kubernetes-sigs/cluster-api/releases/download/{go://sigs.k8s.io/cluster-api@v1.7}/infrastructure-components-development.yaml"
type: "url"
contract: v1beta1
replacements:
- old: --metrics-addr=127.0.0.1:8080
new: --metrics-addr=:8080
files:
- sourcePath: "../data/shared/v1.7/metadata.yaml"
- sourcePath: "../data/infrastructure-docker/v1.7/cluster-template.yaml"
- sourcePath: "../data/infrastructure-docker/v1.7/cluster-template-topology.yaml"
- sourcePath: "../data/infrastructure-docker/v1.7/clusterclass-quick-start.yaml"
- name: "{go://sigs.k8s.io/cluster-api@v1.8}"
value: "https://github.com/kubernetes-sigs/cluster-api/releases/download/{go://sigs.k8s.io/cluster-api@v1.8}/infrastructure-components-development.yaml"
type: "url"
Expand All @@ -326,7 +314,19 @@ providers:
- sourcePath: "../data/infrastructure-docker/v1.8/cluster-template.yaml"
- sourcePath: "../data/infrastructure-docker/v1.8/cluster-template-topology.yaml"
- sourcePath: "../data/infrastructure-docker/v1.8/clusterclass-quick-start.yaml"
- name: v1.9.99 # next; use manifest from source files
- name: "{go://sigs.k8s.io/cluster-api@v1.9}"
value: "https://github.com/kubernetes-sigs/cluster-api/releases/download/{go://sigs.k8s.io/cluster-api@v1.9}/infrastructure-components-development.yaml"
type: "url"
contract: v1beta1
replacements:
- old: --metrics-addr=127.0.0.1:8080
new: --metrics-addr=:8080
files:
- sourcePath: "../data/shared/v1.9/metadata.yaml"
- sourcePath: "../data/infrastructure-docker/v1.9/cluster-template.yaml"
- sourcePath: "../data/infrastructure-docker/v1.9/cluster-template-topology.yaml"
- sourcePath: "../data/infrastructure-docker/v1.9/clusterclass-quick-start.yaml"
- name: v1.10.99 # next; use manifest from source files
value: ../../../test/infrastructure/docker/config/default
files:
# Add cluster templates
Expand Down Expand Up @@ -355,7 +355,7 @@ providers:
- name: in-memory
type: InfrastructureProvider
versions:
- name: v1.9.99 # next; use manifest from source files
- name: v1.10.99 # next; use manifest from source files
value: ../../../test/infrastructure/inmemory/config/default
files:
# Add cluster templates
Expand All @@ -366,7 +366,7 @@ providers:
- name: test-extension
type: RuntimeExtensionProvider
versions:
- name: v1.9.99 # next; use manifest from source files
- name: v1.10.99 # next; use manifest from source files
value: ../../../test/extension/config/default
files:
- sourcePath: "../data/shared/main/metadata.yaml"
Expand Down
47 changes: 0 additions & 47 deletions test/e2e/data/infrastructure-docker/v1.7/bases/mp.yaml

This file was deleted.

Loading
Loading