Skip to content

Commit 057562f

Browse files
Merge pull request #428 from stuggi/golang_1.24
[golang] bump to golang 1.24
2 parents 2c06b5a + 75cfed1 commit 057562f

63 files changed

Lines changed: 706 additions & 763 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.

.ci-operator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
build_root_image:
22
name: tools
33
namespace: openstack-k8s-operators
4-
tag: ci-build-root-golang-1.21-sdk-1.31
4+
tag: ci-build-root-golang-1.24-sdk-1.31

.github/workflows/build-infra-operator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
uses: openstack-k8s-operators/openstack-k8s-operators-ci/.github/workflows/reusable-build-operator.yaml@main
1616
with:
1717
operator_name: infra
18-
go_version: 1.21.x
18+
go_version: 1.24.x
1919
operator_sdk_version: 1.31.0
2020
secrets:
2121
IMAGENAMESPACE: ${{ secrets.IMAGENAMESPACE }}

.github/workflows/force-bump-pr-manual.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ jobs:
99
with:
1010
operator_name: infra
1111
branch_name: ${{ github.ref_name }}
12+
custom_image: quay.io/openstack-k8s-operators/openstack-k8s-operators-ci-build-tools:golang-1.24-sdk-1.31
1213
secrets:
1314
FORCE_BUMP_PULL_REQUEST_PAT: ${{ secrets.FORCE_BUMP_PULL_REQUEST_PAT }}

.github/workflows/force-bump-pr-scheduled.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ jobs:
1010
uses: openstack-k8s-operators/openstack-k8s-operators-ci/.github/workflows/force-bump-branches.yaml@main
1111
with:
1212
operator_name: infra
13+
custom_image: quay.io/openstack-k8s-operators/openstack-k8s-operators-ci-build-tools:golang-1.24-sdk-1.31
1314
secrets:
1415
FORCE_BUMP_PULL_REQUEST_PAT: ${{ secrets.FORCE_BUMP_PULL_REQUEST_PAT }}

.golangci.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
1+
version: 2
2+
13
linters:
24
# Enable specific linter
35
# https://golangci-lint.run/usage/linters/#enabled-by-default
46
enable:
57
- errorlint
68
- revive
79
- ginkgolinter
8-
- gofmt
910
- govet
11+
12+
formatters:
13+
enable:
14+
- gofmt
15+
1016
run:
1117
timeout: 5m

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ repos:
5656
exclude: ^vendor
5757

5858
- repo: https://github.com/golangci/golangci-lint
59-
rev: v1.59.1
59+
rev: v2.4.0
6060
hooks:
6161
- id: golangci-lint-full
6262
args: ["-v"]

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG GOLANG_BUILDER=registry.access.redhat.com/ubi9/go-toolset:1.21
1+
ARG GOLANG_BUILDER=registry.access.redhat.com/ubi9/go-toolset:1.24
22
ARG OPERATOR_BASE_IMAGE=registry.access.redhat.com/ubi9/ubi-minimal:latest
33

44
# Build the manager binary

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ OPERATOR_SDK_VERSION ?= v1.31.0
5454
DEFAULT_IMG ?= quay.io/openstack-k8s-operators/infra-operator:latest
5555
IMG ?= $(DEFAULT_IMG)
5656
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
57-
ENVTEST_K8S_VERSION = 1.29
57+
ENVTEST_K8S_VERSION = 1.31
5858

5959
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
6060
ifeq (,$(shell go env GOBIN))
@@ -207,8 +207,8 @@ GINKGO ?= $(LOCALBIN)/ginkgo
207207

208208
## Tool Versions
209209
KUSTOMIZE_VERSION ?= v3.8.7
210-
CONTROLLER_TOOLS_VERSION ?= v0.14.0
211-
GOTOOLCHAIN_VERSION ?= go1.21.0
210+
CONTROLLER_TOOLS_VERSION ?= v0.18.0
211+
GOTOOLCHAIN_VERSION ?= go1.24.0
212212

213213
KUSTOMIZE_INSTALL_SCRIPT ?= "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh"
214214
.PHONY: kustomize
@@ -229,7 +229,7 @@ $(CONTROLLER_GEN): $(LOCALBIN)
229229
.PHONY: envtest
230230
envtest: $(ENVTEST) ## Download envtest-setup locally if necessary.
231231
$(ENVTEST): $(LOCALBIN)
232-
test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@c7e1dc9
232+
test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
233233

234234
.PHONY: ginkgo
235235
ginkgo: $(GINKGO) ## Download ginkgo locally if necessary.

apis/bases/instanceha.openstack.org_instancehas.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.18.0
77
name: instancehas.instanceha.openstack.org
88
spec:
99
group: instanceha.openstack.org

apis/bases/memcached.openstack.org_memcacheds.yaml

Lines changed: 7 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.18.0
77
name: memcacheds.memcached.openstack.org
88
spec:
99
group: memcached.openstack.org
@@ -83,11 +83,9 @@ spec:
8383
Claims lists the names of resources, defined in spec.resourceClaims,
8484
that are used by this container.
8585
86-
8786
This is an alpha field and requires enabling the
8887
DynamicResourceAllocation feature gate.
8988
90-
9189
This field is immutable. It can only be set for containers.
9290
items:
9391
description: ResourceClaim references one entry in PodSpec.ResourceClaims.
@@ -98,6 +96,12 @@ spec:
9896
the Pod where this field is used. It makes that resource available
9997
inside a container.
10098
type: string
99+
request:
100+
description: |-
101+
Request is the name chosen for a request in the referenced claim.
102+
If empty, everything from the claim is made available, otherwise
103+
only the result of this request.
104+
type: string
101105
required:
102106
- name
103107
type: object

0 commit comments

Comments
 (0)