Skip to content

Commit 34493f4

Browse files
authored
Update cluster-api to v1.8.1 (#1894)
1 parent 73983fd commit 34493f4

26 files changed

+341
-332
lines changed

.golangci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ linters-settings:
101101
allow-leading-space: false
102102
require-specific: true
103103
staticcheck:
104-
go: "1.21"
104+
go: "1.22"
105105
stylecheck:
106-
go: "1.21"
106+
go: "1.22"
107107
gosec:
108108
excludes:
109109
- G307 # Deferring unsafe method "Close" on type "\*os.File"
@@ -126,7 +126,7 @@ linters-settings:
126126
- whyNoLint
127127
- wrapperFunc
128128
unused:
129-
go: "1.21"
129+
go: "1.22"
130130
issues:
131131
max-same-issues: 0
132132
max-issues-per-linter: 0

Makefile

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ RELEASE_DIR := out
6363
OUTPUT_TYPE ?= type=registry
6464

6565
# Go
66-
GO_VERSION ?=1.21.12
66+
GO_VERSION ?=1.22.5
6767
GO_CONTAINER_IMAGE ?= golang:$(GO_VERSION)
6868

6969
# kind
@@ -100,13 +100,6 @@ else
100100
GOBIN=$(shell go env GOBIN)
101101
endif
102102

103-
# Set --output-base for conversion-gen if we are not within GOPATH
104-
ifneq ($(abspath $(ROOT_DIR_RELATIVE)),$(shell go env GOPATH)/src/sigs.k8s.io/cluster-api-provider-ibmcloud)
105-
CONVERSION_GEN_OUTPUT_BASE := --output-base=$(ROOT_DIR_RELATIVE)
106-
else
107-
export GOPATH := $(shell go env GOPATH)
108-
endif
109-
110103
all: manager
111104

112105
## --------------------------------------
@@ -181,10 +174,9 @@ generate-manifests: $(CONTROLLER_GEN) ## Generate manifests e.g. CRD, RBAC etc.
181174
generate-go-conversions: $(CONVERSION_GEN) ## Generate conversions go code
182175
$(MAKE) clean-generated-conversions SRC_DIRS="./api/v1beta1"
183176
$(CONVERSION_GEN) \
184-
--input-dirs=./api/v1beta1 \
185-
--build-tag=ignore_autogenerated_core \
186-
--output-file-base=zz_generated.conversion $(CONVERSION_GEN_OUTPUT_BASE) \
187-
--go-header-file=./hack/boilerplate/boilerplate.generatego.txt
177+
--output-file=zz_generated.conversion.go \
178+
--go-header-file=./hack/boilerplate/boilerplate.generatego.txt \
179+
./api/v1beta1
188180

189181
.PHONY: generate-templates
190182
generate-templates: $(KUSTOMIZE) ## Generate cluster templates

api/v1beta1/zz_generated.conversion.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1beta1/zz_generated.deepcopy.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cloudbuild.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ options:
44
substitution_option: ALLOW_LOOSE
55
machineType: 'E2_HIGHCPU_8'
66
steps:
7-
- name: 'gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20240210-bcb4e42f96'
7+
- name: 'gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20240523-a15ad90fc9'
88
entrypoint: bash
99
env:
1010
- DOCKER_CLI_EXPERIMENTAL=enabled

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

Lines changed: 1 addition & 1 deletion
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.14.0
6+
controller-gen.kubebuilder.io/version: v0.15.0
77
name: ibmpowervsclusters.infrastructure.cluster.x-k8s.io
88
spec:
99
group: infrastructure.cluster.x-k8s.io

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

Lines changed: 1 addition & 1 deletion
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.14.0
6+
controller-gen.kubebuilder.io/version: v0.15.0
77
name: ibmpowervsclustertemplates.infrastructure.cluster.x-k8s.io
88
spec:
99
group: infrastructure.cluster.x-k8s.io

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

Lines changed: 1 addition & 1 deletion
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.14.0
6+
controller-gen.kubebuilder.io/version: v0.15.0
77
name: ibmpowervsimages.infrastructure.cluster.x-k8s.io
88
spec:
99
group: infrastructure.cluster.x-k8s.io

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

Lines changed: 13 additions & 3 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.14.0
6+
controller-gen.kubebuilder.io/version: v0.15.0
77
name: ibmpowervsmachines.infrastructure.cluster.x-k8s.io
88
spec:
99
group: infrastructure.cluster.x-k8s.io
@@ -100,10 +100,15 @@ spec:
100100
the details for provisioning the Image for a Cluster.
101101
properties:
102102
name:
103+
default: ""
103104
description: |-
104105
Name of the referent.
105-
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
106+
This field is effectively required, but due to backwards compatibility is
107+
allowed to be empty. Instances of this type with an empty value here are
108+
almost certainly wrong.
106109
TODO: Add other useful fields. apiVersion, kind, uid?
110+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
111+
TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896.
107112
type: string
108113
type: object
109114
x-kubernetes-map-type: atomic
@@ -377,10 +382,15 @@ spec:
377382
the details for provisioning the Image for a Cluster.
378383
properties:
379384
name:
385+
default: ""
380386
description: |-
381387
Name of the referent.
382-
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
388+
This field is effectively required, but due to backwards compatibility is
389+
allowed to be empty. Instances of this type with an empty value here are
390+
almost certainly wrong.
383391
TODO: Add other useful fields. apiVersion, kind, uid?
392+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
393+
TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896.
384394
type: string
385395
type: object
386396
x-kubernetes-map-type: atomic

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

Lines changed: 13 additions & 3 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.14.0
6+
controller-gen.kubebuilder.io/version: v0.15.0
77
name: ibmpowervsmachinetemplates.infrastructure.cluster.x-k8s.io
88
spec:
99
group: infrastructure.cluster.x-k8s.io
@@ -74,10 +74,15 @@ spec:
7474
the details for provisioning the Image for a Cluster.
7575
properties:
7676
name:
77+
default: ""
7778
description: |-
7879
Name of the referent.
79-
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
80+
This field is effectively required, but due to backwards compatibility is
81+
allowed to be empty. Instances of this type with an empty value here are
82+
almost certainly wrong.
8083
TODO: Add other useful fields. apiVersion, kind, uid?
84+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
85+
TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896.
8186
type: string
8287
type: object
8388
x-kubernetes-map-type: atomic
@@ -220,10 +225,15 @@ spec:
220225
the details for provisioning the Image for a Cluster.
221226
properties:
222227
name:
228+
default: ""
223229
description: |-
224230
Name of the referent.
225-
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
231+
This field is effectively required, but due to backwards compatibility is
232+
allowed to be empty. Instances of this type with an empty value here are
233+
almost certainly wrong.
226234
TODO: Add other useful fields. apiVersion, kind, uid?
235+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
236+
TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896.
227237
type: string
228238
type: object
229239
x-kubernetes-map-type: atomic

0 commit comments

Comments
 (0)