Skip to content

Commit e9e3d17

Browse files
committed
BUILD/MINOR: go: use go 1.25
1 parent 1e1792a commit e9e3d17

File tree

7 files changed

+13
-11
lines changed

7 files changed

+13
-11
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ variables:
99
KIND: v0.27.0
1010
DOCKER_HOST: tcp://docker:2375
1111
DOCKER_DRIVER: overlay2
12-
GO_VERSION: "1.24"
12+
GO_VERSION: "1.25"
1313
DOCKER_VERSION: "26.0"
1414

1515
include:

build/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM golang:1.24-alpine AS builder
15+
FROM golang:1.25-alpine AS builder
1616

1717
RUN apk --no-cache add git openssh
1818

build/Dockerfile.dev

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ RUN mkdir -p /usr/local/hug/aux && \
3131
RUN apk --no-cache add socat openssl util-linux htop tzdata curl libcap && \
3232
rm -f /usr/local/bin/dataplaneapi /usr/bin/dataplaneapi /etc/haproxy/dataplaneapi.yml && \
3333
rm -f /usr/local/bin/dataplaneapi-v2 /usr/bin/dataplaneapi-v2 && \
34-
chgrp -R haproxy /usr/local/etc/haproxy /run /var && \
35-
chmod -R ug+rwx /usr/local/etc/haproxy /run /var && \
34+
rm -f /etc/haproxy/haproxy.cfg && \
35+
mkdir -p /usr/local/hug && \
36+
chgrp -R haproxy /usr/local/hug /run /var && \
37+
chmod -R ug+rwx /usr/local/hug /run /var && \
3638
setcap 'cap_net_bind_service=+ep' /usr/local/sbin/haproxy && \
3739
case "${TARGETPLATFORM}" in \
3840
"linux/arm64") S6_ARCH=aarch64 ;; \

ci/http-echo/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.24-alpine AS builder
1+
FROM golang:1.25-alpine AS builder
22

33
COPY *.go /src/
44
COPY go.mod /src/go.mod

ci/http-echo/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module echo-http
22

3-
go 1.24
3+
go 1.25

go.mod

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
module github.com/haproxytech/kubernetes-controller
22

3-
go 1.24.0
3+
// module github.com/haproxytech/haproxy-unified-gateway
4+
5+
go 1.25.0
46

57
require (
68
github.com/Masterminds/semver/v3 v3.3.1

k8s/gate/store/object-store_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,7 @@ func TestObjectStoreImpl_Concurrency(t *testing.T) {
227227
var wg sync.WaitGroup
228228

229229
for i := range numGoroutines {
230-
wg.Add(1)
231-
go func() {
232-
defer wg.Done()
230+
wg.Go(func() {
233231
for j := range numOpsPerGoroutine {
234232
idRoutine := strconv.Itoa(i)
235233
idOp := strconv.Itoa(j)
@@ -244,7 +242,7 @@ func TestObjectStoreImpl_Concurrency(t *testing.T) {
244242
store.delete(&gatewayv1.GatewayClass{}, nsName)
245243
}
246244
}
247-
}()
245+
})
248246
}
249247
wg.Wait()
250248

0 commit comments

Comments
 (0)