Skip to content

Commit 25c3e23

Browse files
Update Go to version 1.26 (#195)
1 parent 859ee9a commit 25c3e23

21 files changed

Lines changed: 33 additions & 44 deletions

.github/renovate.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
],
1212
"commitMessageAction": "Renovate: Update",
1313
"constraints": {
14-
"go": "1.25"
14+
"go": "1.26"
1515
},
1616
"dependencyDashboardOSVVulnerabilitySummary": "all",
1717
"osvVulnerabilityAlerts": true,

.github/workflows/checks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
uses: actions/setup-go@v6
3030
with:
3131
check-latest: true
32-
go-version: 1.25.7
32+
go-version: 1.26.0
3333
- name: Run prepare make target
3434
run: make generate
3535
- name: Run golangci-lint

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
uses: actions/setup-go@v6
3333
with:
3434
check-latest: true
35-
go-version: 1.25.7
35+
go-version: 1.26.0
3636
- name: Run prepare make target
3737
run: make generate
3838
- name: Build all binaries
@@ -67,7 +67,7 @@ jobs:
6767
uses: actions/setup-go@v6
6868
with:
6969
check-latest: true
70-
go-version: 1.25.7
70+
go-version: 1.26.0
7171
- name: Run prepare make target
7272
run: make generate
7373
- name: Run tests and generate coverage report

.github/workflows/goreleaser.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
uses: actions/setup-go@v6
2828
with:
2929
check-latest: true
30-
go-version: 1.25.7
30+
go-version: 1.26.0
3131
- name: Run prepare make target
3232
run: make generate
3333
- name: Install syft

.github/workflows/test-chart.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
uses: actions/setup-go@v5
2828
with:
2929
check-latest: true
30-
go-version: 1.25.5
30+
go-version: 1.26.0
3131
- name: Fetch latest kubectl version
3232
id: kubectl
3333
run: |

.github/workflows/test-e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
uses: actions/setup-go@v5
2828
with:
2929
check-latest: true
30-
go-version: 1.25.5
30+
go-version: 1.26.0
3131
- name: Fetch latest kubectl version
3232
id: kubectl
3333
run: |

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-FileCopyrightText: 2025 SAP SE or an SAP affiliate company and IronCore contributors
33
# SPDX-License-Identifier: Apache-2.0
44

5-
FROM golang:1.25-alpine3.22 AS builder
5+
FROM golang:1.26-alpine3.22 AS builder
66

77
RUN apk add --no-cache --no-progress git make
88

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Network-operator is a project built using Kubebuilder and controller-runtime to
2020

2121
### Prerequisites
2222

23-
- go version v1.25.0+
23+
- go version v1.26.0+
2424
- docker version 28+.
2525
- kubectl version v1.33.1+.
2626
- Access to a Kubernetes v1.33.0+ cluster.

cmd/main.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import (
2626
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
2727
clientgoscheme "k8s.io/client-go/kubernetes/scheme"
2828
"k8s.io/klog/v2"
29-
"k8s.io/utils/ptr"
3029
ctrl "sigs.k8s.io/controller-runtime"
3130
"sigs.k8s.io/controller-runtime/pkg/cache"
3231
"sigs.k8s.io/controller-runtime/pkg/certwatcher"
@@ -204,7 +203,7 @@ func main() {
204203

205204
mgr, err := ctrl.NewManager(ctrl.GetConfigOrDie(), ctrl.Options{
206205
Cache: cache.Options{ReaderFailOnMissingInformer: true},
207-
Controller: config.Controller{UsePriorityQueue: ptr.To(true), MaxConcurrentReconciles: maxConcurrentReconciles},
206+
Controller: config.Controller{UsePriorityQueue: new(true), MaxConcurrentReconciles: maxConcurrentReconciles},
208207
Scheme: scheme,
209208
Metrics: metricsServerOptions,
210209
WebhookServer: webhookServer,

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/ironcore-dev/network-operator
22

3-
go 1.25.0
3+
go 1.26.0
44

55
require (
66
github.com/felix-kaestner/copy v0.0.0-20250930112410-8fbc5c5b74a5

0 commit comments

Comments
 (0)