Skip to content

Commit 25d6f09

Browse files
authored
🌱 Bump sigs.k8s.io/cluster-api to main@v1.8.0-rc.0.0.20240926091600-d495b4efe59f (#3206)
* Bump sigs.k8s.io/cluster-api to main@v1.8.0-rc.0.0.20240926091600-d495b4efe59f * controllers: fixes * Bump CAPI mainfest to main * ignore errors.MachineStatusError deprecation * fixup test data * Bump controller-gen * add missing v1.9 metadata * fix old conditions api * Sync Makefile * Pin capi version manifests to dated nightly * Bump CAPI to match image * fix unit tests * Predicate related changes * vsphere: bump manifests again * bump go again * Fix godoc and bump controller-gen * fix predicate logs * Bump cluster-api * Suppress finalizer name API warnings * review fixes
1 parent f5c6374 commit 25d6f09

File tree

60 files changed

+526
-919
lines changed

Some content is hidden

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

60 files changed

+526
-919
lines changed

‎.golangci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,10 @@ issues:
203203
- linters:
204204
- staticcheck
205205
text: "SA1019: .*PreferredAPIServerCIDR is deprecated"
206+
# Deprecations for FailureReason
207+
- linters:
208+
- staticcheck
209+
text: "SA1019: \"sigs.k8s.io/cluster-api/errors\" is deprecated:"
206210
# Deprecations for old api groups
207211
- linters:
208212
- staticcheck

‎Makefile

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,23 @@ SHELL:=/usr/bin/env bash
2424
# Go.
2525
#
2626
GO_VERSION ?= 1.22.7
27+
GO_DIRECTIVE_VERSION ?= 1.22.0
2728
GO_CONTAINER_IMAGE ?= docker.io/library/golang:$(GO_VERSION)
28-
GO_DIRECTIVE_VERSION ?= 1.22.0
2929

3030
# Use GOPROXY environment variable if set
3131
GOPROXY := $(shell go env GOPROXY)
32-
ifeq (,$(strip $(GOPROXY)))
32+
ifeq ($(GOPROXY),)
3333
GOPROXY := https://proxy.golang.org
3434
endif
3535
export GOPROXY
3636

3737
# Active module mode, as we use go modules to manage dependencies
38-
export GO111MODULE := on
38+
export GO111MODULE=on
3939

4040
#
4141
# Kubebuilder.
4242
#
43-
export KUBEBUILDER_ENVTEST_KUBERNETES_VERSION ?= 1.28.0
43+
export KUBEBUILDER_ENVTEST_KUBERNETES_VERSION ?= 1.31.0
4444
export KUBEBUILDER_CONTROLPLANE_START_TIMEOUT ?= 60s
4545
export KUBEBUILDER_CONTROLPLANE_STOP_TIMEOUT ?= 60s
4646

@@ -104,16 +104,12 @@ KUSTOMIZE_BIN := kustomize
104104
KUSTOMIZE := $(abspath $(TOOLS_BIN_DIR)/$(KUSTOMIZE_BIN)-$(KUSTOMIZE_VER))
105105
KUSTOMIZE_PKG := sigs.k8s.io/kustomize/kustomize/v4
106106

107-
# This is a commit from CR main (22.05.2024).
108-
# Intentionally using a commit from main to use a setup-envtest version
109-
# that uses binaries from controller-tools, not GCS.
110-
# CR PR: https://github.com/kubernetes-sigs/controller-runtime/pull/2811
111-
SETUP_ENVTEST_VER := v0.0.0-20240522175850-2e9781e9fc60
107+
SETUP_ENVTEST_VER := release-0.19
112108
SETUP_ENVTEST_BIN := setup-envtest
113109
SETUP_ENVTEST := $(abspath $(TOOLS_BIN_DIR)/$(SETUP_ENVTEST_BIN)-$(SETUP_ENVTEST_VER))
114110
SETUP_ENVTEST_PKG := sigs.k8s.io/controller-runtime/tools/setup-envtest
115111

116-
CONTROLLER_GEN_VER := v0.15.0
112+
CONTROLLER_GEN_VER := v0.16.3
117113
CONTROLLER_GEN_BIN := controller-gen
118114
CONTROLLER_GEN := $(abspath $(TOOLS_BIN_DIR)/$(CONTROLLER_GEN_BIN)-$(CONTROLLER_GEN_VER))
119115
CONTROLLER_GEN_PKG := sigs.k8s.io/controller-tools/cmd/controller-gen
@@ -123,7 +119,7 @@ GOTESTSUM_BIN := gotestsum
123119
GOTESTSUM := $(abspath $(TOOLS_BIN_DIR)/$(GOTESTSUM_BIN)-$(GOTESTSUM_VER))
124120
GOTESTSUM_PKG := gotest.tools/gotestsum
125121

126-
CONVERSION_GEN_VER := v0.30.0
122+
CONVERSION_GEN_VER := v0.31.0
127123
CONVERSION_GEN_BIN := conversion-gen
128124
# We are intentionally using the binary without version suffix, to avoid the version
129125
# in generated files.
@@ -142,7 +138,7 @@ GO_APIDIFF_PKG := github.com/joelanford/go-apidiff
142138

143139
SHELLCHECK_VER := v0.9.0
144140

145-
TRIVY_VER := 0.47.0
141+
TRIVY_VER := 0.49.1
146142

147143
KPROMO_VER := v4.0.5
148144
KPROMO_BIN := kpromo
@@ -185,7 +181,7 @@ IMPORT_BOSS_VER := v0.28.1
185181
IMPORT_BOSS := $(abspath $(TOOLS_BIN_DIR)/$(IMPORT_BOSS_BIN))
186182
IMPORT_BOSS_PKG := k8s.io/code-generator/cmd/import-boss
187183

188-
CAPI_HACK_TOOLS_VER := 02769254e95db17afbd6ec4036aacbd294d9424c # Note: this is the commit ID of CAPI v1.8.1
184+
CAPI_HACK_TOOLS_VER := 75c986db9e38190a2313eaf6e5f97d955fa96b65 # Note: this is the commit ID of CAPI 75c986db9e38190a2313eaf6e5f97d955fa96b65 from 2024-10-02
189185

190186
BOSKOSCTL_BIN := boskosctl
191187
BOSKOSCTL := $(abspath $(TOOLS_BIN_DIR)/$(BOSKOSCTL_BIN))
@@ -263,7 +259,7 @@ ifeq ($(SELINUX_ENABLED),1)
263259
endif
264260

265261
# Set build time variables including version details
266-
LDFLAGS ?= $(shell hack/version.sh)
262+
LDFLAGS := $(shell hack/version.sh)
267263

268264
# Additional CAPV vars (everything else is ~ kept in sync with core CAPI)
269265
# Allow overriding manifest generation destination directory

‎apis/v1alpha3/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ func (v APIEndpoint) String() string {
185185
// NetworkSpec defines the virtual machine's network configuration.
186186
type NetworkSpec struct {
187187
// Devices is the list of network devices used by the virtual machine.
188-
// TODO(akutz) Make sure at least one network matches the
189-
// ClusterSpec.CloudProviderConfiguration.Network.Name
188+
//
189+
// TODO(akutz) Make sure at least one network matches the ClusterSpec.CloudProviderConfiguration.Network.Name
190190
Devices []NetworkDeviceSpec `json:"devices"`
191191

192192
// Routes is a list of optional, static routes applied to the virtual

‎apis/v1alpha3/vendored_cluster_api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ type Condition struct {
167167
// Last time the condition transitioned from one status to another.
168168
// This should be when the underlying condition changed. If that is not known, then using the time when
169169
// the API field changed is acceptable.
170-
// +required
170+
// +optional
171171
LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
172172

173173
// The reason for the condition's last transition in CamelCase.

‎apis/v1alpha4/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ func (v APIEndpoint) String() string {
185185
// NetworkSpec defines the virtual machine's network configuration.
186186
type NetworkSpec struct {
187187
// Devices is the list of network devices used by the virtual machine.
188-
// TODO(akutz) Make sure at least one network matches the
189-
// ClusterSpec.CloudProviderConfiguration.Network.Name
188+
//
189+
// TODO(akutz) Make sure at least one network matches the ClusterSpec.CloudProviderConfiguration.Network.Name
190190
Devices []NetworkDeviceSpec `json:"devices"`
191191

192192
// Routes is a list of optional, static routes applied to the virtual

‎apis/v1alpha4/vendored_cluster_api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ type Condition struct {
112112
// Last time the condition transitioned from one status to another.
113113
// This should be when the underlying condition changed. If that is not known, then using the time when
114114
// the API field changed is acceptable.
115-
// +required
115+
// +optional
116116
LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
117117

118118
// The reason for the condition's last transition in CamelCase.

‎apis/v1beta1/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,8 @@ type PCIDeviceSpec struct {
279279
// NetworkSpec defines the virtual machine's network configuration.
280280
type NetworkSpec struct {
281281
// Devices is the list of network devices used by the virtual machine.
282-
// TODO(akutz) Make sure at least one network matches the
283-
// ClusterSpec.CloudProviderConfiguration.Network.Name
282+
//
283+
// TODO(akutz) Make sure at least one network matches the ClusterSpec.CloudProviderConfiguration.Network.Name
284284
Devices []NetworkDeviceSpec `json:"devices"`
285285

286286
// Routes is a list of optional, static routes applied to the virtual

‎config/default/crd/bases/infrastructure.cluster.x-k8s.io_vsphereclusteridentities.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.15.0
6+
controller-gen.kubebuilder.io/version: v0.16.3
77
name: vsphereclusteridentities.infrastructure.cluster.x-k8s.io
88
spec:
99
group: infrastructure.cluster.x-k8s.io
@@ -23,7 +23,6 @@ spec:
2323
description: |-
2424
VSphereClusterIdentity defines the account to be used for reconciling clusters
2525
26-
2726
Deprecated: This type will be removed in one of the next releases.
2827
properties:
2928
apiVersion:
@@ -166,7 +165,6 @@ spec:
166165
description: |-
167166
VSphereClusterIdentity defines the account to be used for reconciling clusters
168167
169-
170168
Deprecated: This type will be removed in one of the next releases.
171169
properties:
172170
apiVersion:
@@ -414,7 +412,7 @@ spec:
414412
description: |-
415413
The reason for the condition's last transition in CamelCase.
416414
The specific API may choose whether or not this field is considered a guaranteed API.
417-
This field may not be empty.
415+
This field may be empty.
418416
type: string
419417
severity:
420418
description: |-

‎config/default/crd/bases/infrastructure.cluster.x-k8s.io_vsphereclusters.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.15.0
6+
controller-gen.kubebuilder.io/version: v0.16.3
77
name: vsphereclusters.infrastructure.cluster.x-k8s.io
88
spec:
99
group: infrastructure.cluster.x-k8s.io
@@ -41,7 +41,6 @@ spec:
4141
description: |-
4242
VSphereCluster is the Schema for the vsphereclusters API
4343
44-
4544
Deprecated: This type will be removed in one of the next releases.
4645
properties:
4746
apiVersion:
@@ -68,7 +67,6 @@ spec:
6867
description: |-
6968
CloudProviderConfiguration holds the cluster-wide configuration for the vSphere cloud provider.
7069
71-
7270
Deprecated: will be removed in v1alpha4.
7371
properties:
7472
disk:
@@ -307,7 +305,6 @@ spec:
307305
Insecure is a flag that controls whether to validate the
308306
vSphere server's certificate.
309307
310-
311308
Deprecated: will be removed in v1alpha4.
312309
type: boolean
313310
loadBalancerRef:
@@ -318,7 +315,6 @@ spec:
318315
will not be true until the referenced resource is Status.Ready and has a
319316
non-empty Status.Address value.
320317
321-
322318
Deprecated: will be removed in v1alpha4.
323319
properties:
324320
apiVersion:
@@ -333,7 +329,6 @@ spec:
333329
the event) or if no container name is specified "spec.containers[2]" (container with
334330
index 2 in this pod). This syntax is chosen only to have some well-defined way of
335331
referencing a part of an object.
336-
TODO: this design is not final and this field is subject to change in the future.
337332
type: string
338333
kind:
339334
description: |-
@@ -471,7 +466,6 @@ spec:
471466
description: |-
472467
VSphereCluster is the Schema for the vsphereclusters API
473468
474-
475469
Deprecated: This type will be removed in one of the next releases.
476470
properties:
477471
apiVersion:
@@ -804,7 +798,7 @@ spec:
804798
description: |-
805799
The reason for the condition's last transition in CamelCase.
806800
The specific API may choose whether or not this field is considered a guaranteed API.
807-
This field may not be empty.
801+
This field may be empty.
808802
type: string
809803
severity:
810804
description: |-

‎config/default/crd/bases/infrastructure.cluster.x-k8s.io_vsphereclustertemplates.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.15.0
6+
controller-gen.kubebuilder.io/version: v0.16.3
77
name: vsphereclustertemplates.infrastructure.cluster.x-k8s.io
88
spec:
99
group: infrastructure.cluster.x-k8s.io
@@ -23,7 +23,6 @@ spec:
2323
description: |-
2424
VSphereClusterTemplate is the Schema for the vsphereclustertemplates API
2525
26-
2726
Deprecated: This type will be removed in one of the next releases.
2827
properties:
2928
apiVersion:

‎config/default/crd/bases/infrastructure.cluster.x-k8s.io_vspheredeploymentzones.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.15.0
6+
controller-gen.kubebuilder.io/version: v0.16.3
77
name: vspheredeploymentzones.infrastructure.cluster.x-k8s.io
88
spec:
99
group: infrastructure.cluster.x-k8s.io
@@ -23,7 +23,6 @@ spec:
2323
description: |-
2424
VSphereDeploymentZone is the Schema for the vspheredeploymentzones API
2525
26-
2726
Deprecated: This type will be removed in one of the next releases.
2827
properties:
2928
apiVersion:
@@ -140,7 +139,6 @@ spec:
140139
description: |-
141140
VSphereDeploymentZone is the Schema for the vspheredeploymentzones API
142141
143-
144142
Deprecated: This type will be removed in one of the next releases.
145143
properties:
146144
apiVersion:
@@ -331,7 +329,7 @@ spec:
331329
description: |-
332330
The reason for the condition's last transition in CamelCase.
333331
The specific API may choose whether or not this field is considered a guaranteed API.
334-
This field may not be empty.
332+
This field may be empty.
335333
type: string
336334
severity:
337335
description: |-

‎config/default/crd/bases/infrastructure.cluster.x-k8s.io_vspherefailuredomains.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.15.0
6+
controller-gen.kubebuilder.io/version: v0.16.3
77
name: vspherefailuredomains.infrastructure.cluster.x-k8s.io
88
spec:
99
group: infrastructure.cluster.x-k8s.io
@@ -23,7 +23,6 @@ spec:
2323
description: |-
2424
VSphereFailureDomain is the Schema for the vspherefailuredomains API
2525
26-
2726
Deprecated: This type will be removed in one of the next releases.
2827
properties:
2928
apiVersion:
@@ -155,7 +154,6 @@ spec:
155154
description: |-
156155
VSphereFailureDomain is the Schema for the vspherefailuredomains API
157156
158-
159157
Deprecated: This type will be removed in one of the next releases.
160158
properties:
161159
apiVersion:
@@ -313,7 +311,6 @@ spec:
313311
description: |-
314312
AutoConfigure tags the Type which is specified in the Topology
315313
316-
317314
Deprecated: This field is going to be removed in a future release.
318315
type: boolean
319316
name:
@@ -381,7 +378,6 @@ spec:
381378
description: |-
382379
AutoConfigure tags the Type which is specified in the Topology
383380
384-
385381
Deprecated: This field is going to be removed in a future release.
386382
type: boolean
387383
name:

0 commit comments

Comments
 (0)