Skip to content

Commit e86c599

Browse files
committed
Update to Go 1.24.4 and update dependencies
1 parent b2d9aa1 commit e86c599

File tree

9 files changed

+138
-167
lines changed

9 files changed

+138
-167
lines changed

.github/workflows/test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ jobs:
1919
with:
2020
go-version-file: go.mod
2121
- name: golangci-lint
22-
uses: golangci/golangci-lint-action@v6
22+
uses: golangci/golangci-lint-action@v8
2323
with:
24-
version: v1.63.4
24+
version: v2.1.6
2525
args: --timeout=5m
2626
skip-cache: true
2727
- name: Run tests

.golangci.yml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,24 @@
1-
linters-settings:
2-
errcheck:
3-
exclude-functions:
4-
- '(net/http.ResponseWriter).Write'
1+
version: "2"
2+
linters:
3+
settings:
4+
errcheck:
5+
exclude-functions:
6+
- (net/http.ResponseWriter).Write
7+
exclusions:
8+
generated: lax
9+
presets:
10+
- comments
11+
- common-false-positives
12+
- legacy
13+
- std-error-handling
14+
paths:
15+
- third_party$
16+
- builtin$
17+
- examples$
18+
formatters:
19+
exclusions:
20+
generated: lax
21+
paths:
22+
- third_party$
23+
- builtin$
24+
- examples$

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
FROM golang:1.23-alpine3.21 AS builder
1+
FROM golang:1.24.4-alpine3.22 AS builder
22
RUN apk update && apk add git make
33
WORKDIR /go/src/app
44
COPY . .
55
ARG VERSION="main"
66
RUN make build VERSION=${VERSION}
77

8-
FROM alpine:3.21
8+
FROM alpine:3.22
99
RUN apk --no-cache add ca-certificates
1010
WORKDIR /
1111
COPY --from=builder /go/src/app/k8-ldap-configmap .

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export GOPATH ?= $(firstword $(subst :, ,$(shell go env GOPATH)))
22
GOHOSTOS ?= $(shell go env GOHOSTOS)
33
GOHOSTARCH ?= $(shell go env GOHOSTARCH)
44
GOLANGCI_LINT := $(GOPATH)/bin/golangci-lint
5-
GOLANGCI_LINT_VERSION := v1.63.4
5+
GOLANGCI_LINT_VERSION := v2.1.6
66
VERSION ?= $(shell git describe --tags --abbrev=0 || git rev-parse --short HEAD)
77
GITSHA := $(shell git rev-parse HEAD)
88
GITBRANCH := $(shell git rev-parse --abbrev-ref HEAD)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This service uses predefined mappers to build the data for each ConfigMap. Curr
1919

2020
## Kubernetes support
2121

22-
Currently this code is built and tested against Kubernetes 1.25.x and 1.26.x.
22+
Currently this code is built and tested against Kubernetes 1.31.x.
2323

2424
## Install
2525

cmd/k8-ldap-configmap/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,9 +353,9 @@ func validateArgs(logger *slog.Logger) error {
353353
}
354354

355355
func setupLogging() *slog.Logger {
356-
level := &promslog.AllowedLevel{}
356+
level := promslog.NewLevel()
357357
_ = level.Set(*logLevel)
358-
format := &promslog.AllowedFormat{}
358+
format := promslog.NewFormat()
359359
_ = format.Set(*logFormat)
360360
promslogConfig := &promslog.Config{
361361
Level: level,

go.mod

Lines changed: 34 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
module github.com/OSC/k8-ldap-configmap
22

3-
go 1.23
3+
go 1.24.0
4+
5+
toolchain go1.24.4
46

57
require (
68
github.com/alecthomas/kingpin/v2 v2.4.0
7-
github.com/go-ldap/ldap/v3 v3.4.10
9+
github.com/go-ldap/ldap/v3 v3.4.11
810
github.com/lor00x/goldap v0.0.0-20240304151906-8d785c64d1c8
9-
github.com/prometheus/client_golang v1.20.5
10-
github.com/prometheus/common v0.61.0
11+
github.com/prometheus/client_golang v1.22.0
12+
github.com/prometheus/common v0.64.0
1113
github.com/vjeantet/ldapserver v1.0.1
12-
golang.org/x/sync v0.10.0
13-
k8s.io/api v0.29.12
14-
k8s.io/apimachinery v0.29.12
15-
k8s.io/client-go v0.29.12
14+
golang.org/x/sync v0.15.0
15+
k8s.io/api v0.31.9
16+
k8s.io/apimachinery v0.31.9
17+
k8s.io/client-go v0.31.9
1618
)
1719

1820
require (
@@ -21,46 +23,49 @@ require (
2123
github.com/beorn7/perks v1.0.1 // indirect
2224
github.com/cespare/xxhash/v2 v2.3.0 // indirect
2325
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
24-
github.com/emicklei/go-restful/v3 v3.12.1 // indirect
25-
github.com/evanphx/json-patch v4.12.0+incompatible // indirect
26-
github.com/go-asn1-ber/asn1-ber v1.5.7 // indirect
27-
github.com/go-logr/logr v1.4.2 // indirect
28-
github.com/go-openapi/jsonpointer v0.21.0 // indirect
26+
github.com/emicklei/go-restful/v3 v3.12.2 // indirect
27+
github.com/fxamacker/cbor/v2 v2.8.0 // indirect
28+
github.com/go-asn1-ber/asn1-ber v1.5.8-0.20250403174932-29230038a667 // indirect
29+
github.com/go-logr/logr v1.4.3 // indirect
30+
github.com/go-openapi/jsonpointer v0.21.1 // indirect
2931
github.com/go-openapi/jsonreference v0.21.0 // indirect
30-
github.com/go-openapi/swag v0.23.0 // indirect
32+
github.com/go-openapi/swag v0.23.1 // indirect
3133
github.com/gogo/protobuf v1.3.2 // indirect
3234
github.com/golang/protobuf v1.5.4 // indirect
3335
github.com/google/gnostic-models v0.6.9 // indirect
36+
github.com/google/go-cmp v0.7.0 // indirect
3437
github.com/google/gofuzz v1.2.0 // indirect
3538
github.com/google/uuid v1.6.0 // indirect
3639
github.com/imdario/mergo v0.3.16 // indirect
3740
github.com/josharian/intern v1.0.0 // indirect
3841
github.com/json-iterator/go v1.1.12 // indirect
39-
github.com/klauspost/compress v1.17.11 // indirect
4042
github.com/kylelemons/godebug v1.1.0 // indirect
4143
github.com/mailru/easyjson v0.9.0 // indirect
4244
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
4345
github.com/modern-go/reflect2 v1.0.2 // indirect
4446
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
4547
github.com/pkg/errors v0.9.1 // indirect
46-
github.com/prometheus/client_model v0.6.1 // indirect
47-
github.com/prometheus/procfs v0.15.1 // indirect
48-
github.com/spf13/pflag v1.0.5 // indirect
48+
github.com/prometheus/client_model v0.6.2 // indirect
49+
github.com/prometheus/procfs v0.16.1 // indirect
50+
github.com/spf13/pflag v1.0.6 // indirect
51+
github.com/x448/float16 v0.8.4 // indirect
4952
github.com/xhit/go-str2duration/v2 v2.1.0 // indirect
50-
golang.org/x/crypto v0.32.0 // indirect
51-
golang.org/x/net v0.34.0 // indirect
52-
golang.org/x/oauth2 v0.25.0 // indirect
53-
golang.org/x/sys v0.29.0 // indirect
54-
golang.org/x/term v0.28.0 // indirect
55-
golang.org/x/text v0.21.0 // indirect
56-
golang.org/x/time v0.9.0 // indirect
57-
google.golang.org/protobuf v1.36.2 // indirect
53+
golang.org/x/crypto v0.39.0 // indirect
54+
golang.org/x/net v0.41.0 // indirect
55+
golang.org/x/oauth2 v0.30.0 // indirect
56+
golang.org/x/sys v0.33.0 // indirect
57+
golang.org/x/term v0.32.0 // indirect
58+
golang.org/x/text v0.26.0 // indirect
59+
golang.org/x/time v0.12.0 // indirect
60+
google.golang.org/protobuf v1.36.6 // indirect
61+
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
5862
gopkg.in/inf.v0 v0.9.1 // indirect
5963
gopkg.in/yaml.v3 v3.0.1 // indirect
6064
k8s.io/klog/v2 v2.130.1 // indirect
61-
k8s.io/kube-openapi v0.0.0-20241212222426-2c72e554b1e7 // indirect
62-
k8s.io/utils v0.0.0-20241210054802-24370beab758 // indirect
65+
k8s.io/kube-openapi v0.0.0-20250610211856-8b98d1ed966a // indirect
66+
k8s.io/utils v0.0.0-20250604170112-4c0f3b243397 // indirect
6367
sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 // indirect
64-
sigs.k8s.io/structured-merge-diff/v4 v4.5.0 // indirect
68+
sigs.k8s.io/randfill v1.0.0 // indirect
69+
sigs.k8s.io/structured-merge-diff/v4 v4.7.0 // indirect
6570
sigs.k8s.io/yaml v1.4.0 // indirect
6671
)

0 commit comments

Comments
 (0)