Skip to content

Commit 8d08cfd

Browse files
authored
⚠️ Bump CAPI to v1.12.7 (keep v1beta1 contract) (#2000)
1 parent a8a474d commit 8d08cfd

1,956 files changed

Lines changed: 344532 additions & 34928 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.envrc.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export SSH_KEY_NAME=my-caph-ssh-key
66
export HCLOUD_REGION=hel1
77
export CONTROL_PLANE_MACHINE_COUNT=1
88
export WORKER_MACHINE_COUNT=1
9-
export KUBERNETES_VERSION=v1.34.7
9+
export KUBERNETES_VERSION=v1.35.4
1010
export HCLOUD_CONTROL_PLANE_MACHINE_TYPE=cpx32
1111
export HCLOUD_WORKER_MACHINE_TYPE=cpx32
1212
export SSH_KEY=$HOME/.ssh/my-caph-ssh-key.pub

.hadolint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ ignored: []
44
no-color: false
55
no-fail: false
66
strict-labels: false
7-
disable-ignore-pragma: false
7+
disable-ignore-pragma: false

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ MGT_CLUSTER_KUBECONFIG ?= ".mgt-cluster-kubeconfig.yaml"
8282
# Kubebuilder.
8383
# go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
8484
# The command `setup-envtest list` shows the available versions.
85-
export KUBEBUILDER_ENVTEST_KUBERNETES_VERSION ?= 1.34.1
85+
export KUBEBUILDER_ENVTEST_KUBERNETES_VERSION ?= 1.35.0
8686

8787
##@ Binaries
8888
############
@@ -115,7 +115,7 @@ $(CTLPTL):
115115
CLUSTERCTL := $(abspath $(TOOLS_BIN_DIR)/clusterctl)
116116
clusterctl: $(CLUSTERCTL) ## Build a local copy of clusterctl
117117
$(CLUSTERCTL):
118-
go install sigs.k8s.io/cluster-api/cmd/clusterctl@v1.11.8
118+
go install sigs.k8s.io/cluster-api/cmd/clusterctl@v1.12.7
119119

120120
HCLOUD := $(abspath $(TOOLS_BIN_DIR)/hcloud)
121121
hcloud: $(HCLOUD) ## Build a local copy of hcloud
@@ -132,7 +132,7 @@ KUBECTL := $(abspath $(TOOLS_BIN_DIR)/kubectl)
132132
kubectl: $(TOOLS_BIN_DIR) $(KUBECTL) ## Build a local copy of kubectl
133133
$(KUBECTL):
134134
mkdir -p $(TOOLS_BIN_DIR)
135-
curl -fsSL "https://dl.k8s.io/release/v1.34.7/bin/$$(go env GOOS)/$$(go env GOARCH)/kubectl" -o $(KUBECTL)
135+
curl -fsSL "https://dl.k8s.io/release/v1.35.4/bin/$$(go env GOOS)/$$(go env GOARCH)/kubectl" -o $(KUBECTL)
136136
chmod a+rx $(KUBECTL)
137137

138138
go-binsize-treemap := $(abspath $(TOOLS_BIN_DIR)/go-binsize-treemap)
@@ -479,7 +479,7 @@ test-e2e-upgrade-$(INFRA_SHORT): $(E2E_CONF_FILE) $(if $(SKIP_IMAGE_BUILD),,e2e-
479479
GINKGO_FOKUS="'\[Upgrade CAPH\]'" GINKGO_NODES=2 ./hack/ci-e2e-capi.sh
480480

481481
.PHONY: test-e2e-upgrade-kubernetes
482-
test-e2e-upgrade-kubernetes: $(if $(SKIP_IMAGE_BUILD),,e2e-image) $(ARTIFACTS)
482+
test-e2e-upgrade-kubernetes: $(E2E_CONF_FILE) $(if $(SKIP_IMAGE_BUILD),,e2e-image) $(ARTIFACTS)
483483
GINKGO_FOKUS="'\[Upgrade Kubernetes\]'" GINKGO_NODES=2 ./hack/ci-e2e-capi.sh
484484

485485
.PHONY: test-e2e-conformance

Tiltfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ settings = {
2222
"deploy_observability": False,
2323
"preload_images_for_kind": True,
2424
"kind_cluster_name": "caph",
25-
"capi_version": "v1.11.8",
25+
"capi_version": "v1.12.7",
2626
"cabpt_version": "v0.5.6",
2727
"cacppt_version": "v0.4.11",
28-
"cert_manager_version": "v1.11.0",
28+
"cert_manager_version": "v1.20.2",
2929
"extra_args": {
3030
"hetzner": [
3131
"--log-level=debug",

config/crd/bases/infrastructure.cluster.x-k8s.io_hetznerclusters.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,6 @@ spec:
8383
description: port is the port on which the API server is serving.
8484
format: int32
8585
type: integer
86-
required:
87-
- host
88-
- port
8986
type: object
9087
controlPlaneLoadBalancer:
9188
description: ControlPlaneLoadBalancer is an optional configuration

config/crd/bases/infrastructure.cluster.x-k8s.io_hetznerclustertemplates.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,6 @@ spec:
107107
is serving.
108108
format: int32
109109
type: integer
110-
required:
111-
- host
112-
- port
113110
type: object
114111
controlPlaneLoadBalancer:
115112
description: ControlPlaneLoadBalancer is an optional configuration

controllers/hcloudremediation_controller_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ var _ = Describe("HCloudRemediationReconciler", func() {
257257
return fmt.Errorf("hcloudMachine.Status.BootState is not HCloudBootStateOperatingSystemRunning, but: %q", hcloudMachine.Status.BootState)
258258
}
259259
return nil
260-
}).NotTo(HaveOccurred())
260+
}, timeout).NotTo(HaveOccurred())
261261

262262
Expect(testEnv.Create(ctx, hcloudRemediation)).To(Succeed())
263263

@@ -291,7 +291,7 @@ var _ = Describe("HCloudRemediationReconciler", func() {
291291
hcloudMachine.Status.BootState)
292292
}
293293
return nil
294-
}).NotTo(HaveOccurred())
294+
}, timeout).NotTo(HaveOccurred())
295295
hcloudRemediation.Status.RetryCount = hcloudRemediation.Spec.Strategy.RetryLimit
296296
Expect(testEnv.Create(ctx, hcloudRemediation)).To(Succeed())
297297

docs/caph/01-getting-started/02-quickstart/03-creating-a-workload-cluster.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The `clusterctl generate cluster` command returns a YAML template for creating a
1111
It generates a YAML file named `my-cluster.yaml` with a predefined list of Cluster API objects (`Cluster`, `Machines`, `MachineDeployments`, etc.) to be deployed in the current namespace.
1212

1313
```shell
14-
clusterctl generate cluster my-cluster --kubernetes-version v1.34.7 --control-plane-machine-count=3 --worker-machine-count=3 > my-cluster.yaml
14+
clusterctl generate cluster my-cluster --kubernetes-version v1.35.4 --control-plane-machine-count=3 --worker-machine-count=3 > my-cluster.yaml
1515
```
1616

1717
{% callout %}

docs/caph/01-getting-started/03-preparation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export CLUSTER_NAME="my-cluster"
7474
export HCLOUD_REGION="fsn1"
7575
export CONTROL_PLANE_MACHINE_COUNT=3
7676
export WORKER_MACHINE_COUNT=3
77-
export KUBERNETES_VERSION=1.34.7
77+
export KUBERNETES_VERSION=1.35.4
7878
export HCLOUD_CONTROL_PLANE_MACHINE_TYPE=cpx32
7979
export HCLOUD_WORKER_MACHINE_TYPE=cpx32
8080
```
@@ -96,7 +96,7 @@ Required Variables:
9696
Optional Variables:
9797
- CLUSTER_NAME (defaults to hetzner-cluster)
9898
- CONTROL_PLANE_MACHINE_COUNT (defaults to 3)
99-
- KUBERNETES_VERSION (defaults to 1.34.7)
99+
- KUBERNETES_VERSION (defaults to 1.35.4)
100100
- WORKER_MACHINE_COUNT (defaults to 3)
101101
```
102102

docs/caph/02-topics/04-upgrading-caph.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ Checking new release availability...
5858
Latest release available for the v1beta2 API Version of Cluster API (contract):
5959

6060
NAME NAMESPACE TYPE CURRENT VERSION NEXT VERSION
61-
bootstrap-kubeadm capi-kubeadm-bootstrap-system BootstrapProvider v1.11.6 v1.11.8
62-
control-plane-kubeadm capi-kubeadm-control-plane-system ControlPlaneProvider v1.11.6 v1.11.8
63-
cluster-api capi-system CoreProvider v1.11.6 v1.11.8
61+
bootstrap-kubeadm capi-kubeadm-bootstrap-system BootstrapProvider v1.11.8 v1.12.7
62+
control-plane-kubeadm capi-kubeadm-control-plane-system ControlPlaneProvider v1.11.8 v1.12.7
63+
cluster-api capi-system CoreProvider v1.11.8 v1.12.7
6464
infrastructure-hetzner caph-system InfrastructureProvider v1.0.7 Already up to date
6565

6666
You can now apply the upgrade by executing the following command:
@@ -80,23 +80,23 @@ You might be surprised that for `infrastructure-hetzner`, you see the "Already u
8080

8181
## Upgrade cluster-API
8282

83-
We will upgrade cluster API core components to the v1.11.8 version.
83+
We will upgrade cluster API core components to the v1.12.7 version.
8484
Use the command, which you saw in the plan:
8585

8686
```console
8787
$ clusterctl upgrade apply --contract v1beta2
8888
Checking cert-manager version...
8989
Cert-manager is already up to date
9090
Performing upgrade...
91-
Scaling down Provider="cluster-api" Version="v1.11.6" Namespace="capi-system"
92-
Scaling down Provider="bootstrap-kubeadm" Version="v1.11.6" Namespace="capi-kubeadm-bootstrap-system"
93-
Scaling down Provider="control-plane-kubeadm" Version="v1.11.6" Namespace="capi-kubeadm-control-plane-system"
94-
Deleting Provider="cluster-api" Version="v1.11.6" Namespace="capi-system"
95-
Installing Provider="cluster-api" Version="v1.11.8" TargetNamespace="capi-system"
96-
Deleting Provider="bootstrap-kubeadm" Version="v1.11.6" Namespace="capi-kubeadm-bootstrap-system"
97-
Installing Provider="bootstrap-kubeadm" Version="v1.11.8" TargetNamespace="capi-kubeadm-bootstrap-system"
98-
Deleting Provider="control-plane-kubeadm" Version="v1.11.6" Namespace="capi-kubeadm-control-plane-system"
99-
Installing Provider="control-plane-kubeadm" Version="v1.11.8" TargetNamespace="capi-kubeadm-control-plane-system"
91+
Scaling down Provider="cluster-api" Version="v1.11.8" Namespace="capi-system"
92+
Scaling down Provider="bootstrap-kubeadm" Version="v1.11.8" Namespace="capi-kubeadm-bootstrap-system"
93+
Scaling down Provider="control-plane-kubeadm" Version="v1.11.8" Namespace="capi-kubeadm-control-plane-system"
94+
Deleting Provider="cluster-api" Version="v1.11.8" Namespace="capi-system"
95+
Installing Provider="cluster-api" Version="v1.12.7" TargetNamespace="capi-system"
96+
Deleting Provider="bootstrap-kubeadm" Version="v1.11.8" Namespace="capi-kubeadm-bootstrap-system"
97+
Installing Provider="bootstrap-kubeadm" Version="v1.12.7" TargetNamespace="capi-kubeadm-bootstrap-system"
98+
Deleting Provider="control-plane-kubeadm" Version="v1.11.8" Namespace="capi-kubeadm-control-plane-system"
99+
Installing Provider="control-plane-kubeadm" Version="v1.12.7" TargetNamespace="capi-kubeadm-control-plane-system"
100100
```
101101

102102
Great, cluster-API was upgraded.

0 commit comments

Comments
 (0)