Skip to content

Commit 77f3703

Browse files
authored
Merge pull request #1509 from justinsb/bump_capi_version_to_0_11
Upgrade to CAPI v1.11
2 parents 400523b + 45b9880 commit 77f3703

Some content is hidden

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

53 files changed

+538
-310
lines changed

.golangci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,12 @@ linters:
132132
text: (Expect directory permissions to be 0750 or less|Expect file permissions to be 0600 or less)
133133
- path: (.+)\.go$
134134
text: (G104|G307)
135+
136+
# Temporary exclusion during upgrade from CAPI 1.10 to CAPI 1.11
137+
- linters:
138+
- staticcheck
139+
text: 'SA1019: .* This package is deprecated and is going to be removed when support for v1beta1 will be dropped'
140+
135141
paths:
136142
- zz_generated.*\.go$
137143
- .*conversion.*\.go$

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
# Build the manager binary
16-
FROM golang:1.23.9@sha256:1cc01afde44821895ea712b5b4b802ef3c3ddeb7a7bb3f2e69c19bbc5877dace as builder
16+
FROM golang:1.24.6@sha256:ec428de7d307550fb36d383524328a30701b1f5c3e72c30d35ab9c64498441bb as builder
1717
WORKDIR /workspace
1818

1919
# Run this with docker build --build_arg $(go env GOPROXY) to override the goproxy

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ export GOPROXY
3333
export GO111MODULE=on
3434

3535
# Go version
36-
GOLANG_VERSION := 1.23.9
36+
GOLANG_VERSION := 1.24.6
3737

3838
# Kubebuilder
39-
export KUBEBUILDER_ENVTEST_KUBERNETES_VERSION ?= 1.32.0
39+
export KUBEBUILDER_ENVTEST_KUBERNETES_VERSION ?= 1.33.0
4040
export KUBEBUILDER_CONTROLPLANE_START_TIMEOUT ?=60s
4141
export KUBEBUILDER_CONTROLPLANE_STOP_TIMEOUT ?=60s
4242

@@ -99,7 +99,7 @@ KUBECTL := $(TOOLS_BIN_DIR)/$(KUBECTL_BIN)-$(KUBECTL_VER)
9999

100100
TIMEOUT := $(shell command -v timeout || command -v gtimeout)
101101

102-
SETUP_ENVTEST_VER := v0.0.0-20240522175850-2e9781e9fc60
102+
SETUP_ENVTEST_VER := v0.0.0-20250827153409-7085be7a745a
103103
SETUP_ENVTEST_BIN := setup-envtest
104104
SETUP_ENVTEST := $(TOOLS_BIN_DIR)/$(SETUP_ENVTEST_BIN)
105105

Tiltfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ settings = {
1818
"deploy_cert_manager": True,
1919
"preload_images_for_kind": True,
2020
"kind_cluster_name": "capg",
21-
"capi_version": "v1.7.3",
21+
"capi_version": "v1.11.0",
2222
"cert_manager_version": "v1.14.4",
23-
"kubernetes_version": "v1.29.3",
23+
"kubernetes_version": "v1.33.2",
2424
}
2525

2626
keys = ["GCP_B64ENCODED_CREDENTIALS"]
@@ -98,9 +98,9 @@ def validate_auth():
9898

9999
tilt_helper_dockerfile_header = """
100100
# Tilt image
101-
FROM golang:1.23.6 as tilt-helper
101+
FROM golang:1.24.6 as tilt-helper
102102
# Install delve. Note this should be kept in step with the Go release minor version.
103-
RUN go install github.com/go-delve/delve/cmd/dlv@v1.23
103+
RUN go install github.com/go-delve/delve/cmd/dlv@v1.24
104104
# Support live reloading with Tilt
105105
RUN wget --output-document /restart.sh --quiet https://raw.githubusercontent.com/tilt-dev/rerun-process-wrapper/master/restart.sh && \
106106
wget --output-document /start.sh --quiet https://raw.githubusercontent.com/tilt-dev/rerun-process-wrapper/master/start.sh && \
@@ -109,7 +109,7 @@ RUN wget --output-document /restart.sh --quiet https://raw.githubusercontent.com
109109
"""
110110

111111
tilt_dockerfile_header = """
112-
FROM golang:1.23.6 as tilt
112+
FROM golang:1.24.6 as tilt
113113
WORKDIR /
114114
COPY --from=tilt-helper /process.txt .
115115
COPY --from=tilt-helper /start.sh .

api/v1beta1/gcpcluster_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ package v1beta1
1818

1919
import (
2020
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
21-
clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
21+
clusterv1 "sigs.k8s.io/cluster-api/api/core/v1beta1"
2222
)
2323

2424
const (

api/v1beta1/gcpclustertemplate_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ package v1beta1
1818

1919
import (
2020
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
21-
clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
21+
clusterv1 "sigs.k8s.io/cluster-api/api/core/v1beta1"
2222
)
2323

2424
// GCPClusterTemplateSpec defines the desired state of GCPClusterTemplate.

api/v1beta1/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package v1beta1
1919
import (
2020
"fmt"
2121

22-
clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
22+
clusterv1 "sigs.k8s.io/cluster-api/api/core/v1beta1"
2323
)
2424

2525
// GCPMachineTemplateResource describes the data needed to create am GCPMachine from a template.

api/v1beta1/zz_generated.deepcopy.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.

cloud/interfaces.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"github.com/GoogleCloudPlatform/k8s-cloud-provider/pkg/cloud"
2525
corev1 "k8s.io/api/core/v1"
2626
infrav1 "sigs.k8s.io/cluster-api-provider-gcp/api/v1beta1"
27-
clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
27+
clusterv1 "sigs.k8s.io/cluster-api/api/core/v1beta1"
2828
)
2929

3030
// Cloud alias for cloud.Cloud interface.

cloud/scope/cluster.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
"k8s.io/utils/ptr"
2828
infrav1 "sigs.k8s.io/cluster-api-provider-gcp/api/v1beta1"
2929
"sigs.k8s.io/cluster-api-provider-gcp/cloud"
30-
clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
30+
clusterv1 "sigs.k8s.io/cluster-api/api/core/v1beta1"
3131
"sigs.k8s.io/cluster-api/util/patch"
3232
"sigs.k8s.io/controller-runtime/pkg/client"
3333
)

0 commit comments

Comments
 (0)