Skip to content

Commit 7717c4d

Browse files
author
Patrick Koss
committed
update deps
1 parent 1f89373 commit 7717c4d

File tree

6 files changed

+365
-1097
lines changed

6 files changed

+365
-1097
lines changed

.golangci.yaml

+4-63
Original file line numberDiff line numberDiff line change
@@ -11,39 +11,22 @@ run:
1111
# include test files or not, default is true
1212
tests: true
1313

14-
# which dirs to skip: issues from them won't be reported;
15-
# can use regexp here: generated.*, regexp is applied on full path;
16-
# default value is empty list, but default dirs are skipped independently
17-
# from this option's value (see skip-dirs-use-default).
18-
# "/" will be replaced by current OS file path separator to properly work
19-
# on Windows.
20-
skip-dirs:
21-
- "./include/*"
22-
2314
# default is true. Enables skipping of directories:
2415
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
2516
skip-dirs-use-default: true
2617

27-
# which files to skip: they will be analyzed, but issues from them
28-
# won't be reported. Default value is empty list, but there is
29-
# no need to include all autogenerated files, we confidently recognize
30-
# autogenerated files. If it's not please let us know.
31-
# "/" will be replaced by current OS file path separator to properly work
32-
# on Windows.
33-
skip-files:
34-
- ".*\\.my\\.go$"
35-
- lib/bad.go
36-
3718
# Allow multiple parallel golangci-lint instances running.
3819
# If false (default) - golangci-lint acquires file lock on start.
3920
allow-parallel-runners: false
21+
go: "1.22"
4022

4123

4224
# output configuration options
4325
output:
4426
# colored-line-number|line-number|json|tab|checkstyle|code-climate|junit-xml|github-actions
4527
# default is "colored-line-number"
46-
format: colored-line-number
28+
formats:
29+
- format: colored-line-number
4730

4831
# print lines of code with issue, default is true
4932
print-issued-lines: true
@@ -142,12 +125,6 @@ linters-settings:
142125
lines: 80
143126
statements: 40
144127

145-
gci:
146-
# put imports beginning with prefix after 3rd-party packages;
147-
# only support one prefix
148-
# if not set, use goimports.local-prefixes
149-
local-prefixes: github.com/org/project
150-
151128
gocognit:
152129
# minimal code complexity to report, 30 by default (but we recommend 10-20)
153130
min-complexity: 10
@@ -264,14 +241,6 @@ linters-settings:
264241
# simplify code: gofmt with `-s` option, true by default
265242
simplify: true
266243

267-
gofumpt:
268-
# Select the Go version to target. The default is `1.15`.
269-
lang-version: "1.15"
270-
271-
# Choose whether or not to use the extra rules that are disabled
272-
# by default
273-
extra-rules: false
274-
275244
goheader:
276245
values:
277246
const:
@@ -306,19 +275,6 @@ linters-settings:
306275
# it's a comma-separated list of prefixes
307276
local-prefixes: github.com/org/project
308277

309-
golint:
310-
# minimal confidence for issues, default is 0.8
311-
min-confidence: 0.8
312-
313-
gomnd:
314-
settings:
315-
mnd:
316-
# the list of enabled checks, see https://github.com/tommy-muehle/go-mnd/#checks for description.
317-
checks: argument,case,condition,operation,return,assign
318-
# ignored-numbers: 1000
319-
# ignored-files: magic_.*.go
320-
# ignored-functions: math.*
321-
322278
gomoddirectives:
323279
# Allow local `replace` directives. Default is false.
324280
replace-local: false
@@ -379,15 +335,10 @@ linters-settings:
379335
truncate: "32"
380336

381337
gosimple:
382-
# Select the Go version to target. The default is '1.13'.
383-
go: "1.15"
384338
# https://staticcheck.io/docs/options#checks
385339
checks: [ "all" ]
386340

387341
govet:
388-
# report about shadowed variables
389-
check-shadowing: true
390-
391342
# settings per analyzer
392343
settings:
393344
printf: # analyzer name, run `go tool vet help` to see all analyzers
@@ -546,15 +497,7 @@ linters-settings:
546497
allowInts: "0,1,2"
547498
allowFloats: "0.0,0.,1.0,1.,2.0,2."
548499

549-
staticcheck:
550-
# Select the Go version to target. The default is '1.13'.
551-
go: "1.15"
552-
# https://staticcheck.io/docs/options#checks
553-
checks: [ "all" ]
554-
555500
stylecheck:
556-
# Select the Go version to target. The default is '1.13'.
557-
go: "1.15"
558501
# https://staticcheck.io/docs/options#checks
559502
checks: [ "all", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022" ]
560503
# https://staticcheck.io/docs/options#dot_import_whitelist
@@ -725,11 +668,9 @@ linters:
725668
- gomnd
726669
- testpackage
727670
- wrapcheck
728-
- golint
729-
- scopelint
730671
- typecheck
731672
- tagliatelle
732-
- goerr113
673+
- err113
733674
- gochecknoglobals
734675
- wsl
735676
- revive

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
GOLANGCI_VERSION = 1.58.1
1+
GOLANGCI_VERSION = 1.59.1
22
LICENCES_IGNORE_LIST = $(shell cat licenses/licenses-ignore-list.txt)
33

44
VERSION ?= 0.0.1
@@ -17,7 +17,7 @@ download:
1717

1818
.PHONY: build
1919
build:
20-
CGO_ENABLED=0 go build -ldflags "-s -w" -o ./bin/stackit-cert-manager-webhook -v cmd/main.go
20+
CGO_ENABLED=0 go build -ldflags "-s -w" -o ./bin/stackit-cert-manager-webhook -v cmd/webhook/main.go
2121

2222
.PHONY: docker-build
2323
docker-build:

e2e_test/e2e_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
"github.com/stretchr/testify/assert"
1818
"go.uber.org/zap"
1919

20-
"github.com/cert-manager/cert-manager/test/acme/dns"
20+
"github.com/cert-manager/cert-manager/test/acme"
2121
)
2222

2323
var (

go.mod

+103-85
Original file line numberDiff line numberDiff line change
@@ -1,116 +1,134 @@
11
module github.com/stackitcloud/stackit-cert-manager-webhook
22

3-
go 1.21
3+
go 1.22.0
4+
5+
toolchain go1.22.5
6+
7+
// Do not remove this comment:
8+
// please place any replace statements here at the top for visibility and add a
9+
// comment to it as to when it can be removed
10+
11+
// In prometheus/common v0.47.0 and v0.48.0, breaking changes were introduced in the "github.com/prometheus/common/expfmt"
12+
// package. Not all our dependencies have been upgraded to use the new API. Until then, compiling cert-manager
13+
// with the newer versions of "github.com/prometheus/common/expfmt" and "github.com/prometheus/client_golang"
14+
// fails. These replace statements can be removed once expfmt.FmtText is no longer used by any of the libraries
15+
// we depend on.
16+
replace github.com/prometheus/common => github.com/prometheus/common v0.46.0
17+
18+
replace github.com/prometheus/client_golang => github.com/prometheus/client_golang v1.18.0
19+
20+
// fixes k8s/apiserver: cannot use &itemsNode{…} (value of type *itemsNode) as checker.AstNode value in return
21+
// statement: *itemsNode does not implement checker.AstNode (wrong type for method Expr)
22+
replace github.com/google/cel-go => github.com/google/cel-go v0.17.8
423

524
require (
6-
github.com/cert-manager/cert-manager v1.11.0
7-
github.com/stackitcloud/stackit-dns-api-client-go v0.0.0-20240207124424-bdfd0c2f7009
8-
github.com/stackitcloud/stackit-sdk-go/core v0.10.0
9-
github.com/stackitcloud/stackit-sdk-go/services/dns v0.8.4
25+
github.com/cert-manager/cert-manager v1.15.2
26+
github.com/stackitcloud/stackit-sdk-go/core v0.12.0
27+
github.com/stackitcloud/stackit-sdk-go/services/dns v0.10.0
1028
github.com/stretchr/testify v1.9.0
1129
go.uber.org/mock v0.4.0
1230
go.uber.org/zap v1.27.0
13-
k8s.io/api v0.26.0
14-
k8s.io/apiextensions-apiserver v0.26.0
15-
k8s.io/apimachinery v0.26.0
16-
k8s.io/client-go v0.26.0
31+
k8s.io/api v0.30.2
32+
k8s.io/apiextensions-apiserver v0.30.2
33+
k8s.io/apimachinery v0.30.2
34+
k8s.io/client-go v0.30.2
35+
k8s.io/utils v0.0.0-20240711033017-18e509b52bc8
1736
)
1837

1938
require (
20-
cloud.google.com/go/compute v1.7.0 // indirect
2139
github.com/NYTimes/gziphandler v1.1.1 // indirect
22-
github.com/antihax/optional v1.0.0 // indirect
23-
github.com/antlr/antlr4/runtime/Go/antlr v1.4.10 // indirect
40+
github.com/antlr/antlr4/runtime/Go/antlr/v4 v4.0.0-20230305170008-8188dc5388df // indirect
41+
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
2442
github.com/beorn7/perks v1.0.1 // indirect
2543
github.com/blang/semver/v4 v4.0.0 // indirect
26-
github.com/cenkalti/backoff/v4 v4.1.3 // indirect
27-
github.com/cespare/xxhash/v2 v2.1.2 // indirect
28-
github.com/coreos/go-semver v0.3.0 // indirect
29-
github.com/coreos/go-systemd/v22 v22.3.2 // indirect
30-
github.com/davecgh/go-spew v1.1.1 // indirect
31-
github.com/emicklei/go-restful/v3 v3.9.0 // indirect
32-
github.com/evanphx/json-patch v5.6.0+incompatible // indirect
33-
github.com/evanphx/json-patch/v5 v5.6.0 // indirect
34-
github.com/felixge/httpsnoop v1.0.3 // indirect
35-
github.com/fsnotify/fsnotify v1.6.0 // indirect
36-
github.com/go-logr/logr v1.2.3 // indirect
44+
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
45+
github.com/cespare/xxhash/v2 v2.3.0 // indirect
46+
github.com/coreos/go-semver v0.3.1 // indirect
47+
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
48+
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
49+
github.com/emicklei/go-restful/v3 v3.12.1 // indirect
50+
github.com/evanphx/json-patch v5.9.0+incompatible // indirect
51+
github.com/evanphx/json-patch/v5 v5.9.0 // indirect
52+
github.com/felixge/httpsnoop v1.0.4 // indirect
53+
github.com/fsnotify/fsnotify v1.7.0 // indirect
54+
github.com/go-logr/logr v1.4.2 // indirect
3755
github.com/go-logr/stdr v1.2.2 // indirect
38-
github.com/go-openapi/jsonpointer v0.19.5 // indirect
39-
github.com/go-openapi/jsonreference v0.20.0 // indirect
40-
github.com/go-openapi/swag v0.19.14 // indirect
56+
github.com/go-logr/zapr v1.3.0 // indirect
57+
github.com/go-openapi/jsonpointer v0.21.0 // indirect
58+
github.com/go-openapi/jsonreference v0.21.0 // indirect
59+
github.com/go-openapi/swag v0.23.0 // indirect
4160
github.com/gogo/protobuf v1.3.2 // indirect
42-
github.com/golang-jwt/jwt/v5 v5.2.0 // indirect
61+
github.com/golang-jwt/jwt/v5 v5.2.1 // indirect
4362
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
44-
github.com/golang/protobuf v1.5.2 // indirect
45-
github.com/google/cel-go v0.12.5 // indirect
46-
github.com/google/gnostic v0.6.9 // indirect
63+
github.com/golang/protobuf v1.5.4 // indirect
64+
github.com/google/cel-go v0.20.1 // indirect
65+
github.com/google/gnostic-models v0.6.9-0.20230804172637-c7be7c783f49 // indirect
4766
github.com/google/go-cmp v0.6.0 // indirect
4867
github.com/google/gofuzz v1.2.0 // indirect
4968
github.com/google/uuid v1.6.0 // indirect
5069
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect
51-
github.com/grpc-ecosystem/grpc-gateway/v2 v2.7.0 // indirect
52-
github.com/imdario/mergo v0.3.12 // indirect
53-
github.com/inconshreveable/mousetrap v1.0.1 // indirect
70+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.21.0 // indirect
71+
github.com/imdario/mergo v0.3.16 // indirect
72+
github.com/inconshreveable/mousetrap v1.1.0 // indirect
5473
github.com/josharian/intern v1.0.0 // indirect
5574
github.com/json-iterator/go v1.1.12 // indirect
56-
github.com/mailru/easyjson v0.7.6 // indirect
57-
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
58-
github.com/miekg/dns v1.1.50 // indirect
75+
github.com/mailru/easyjson v0.7.7 // indirect
76+
github.com/miekg/dns v1.1.59 // indirect
5977
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
6078
github.com/modern-go/reflect2 v1.0.2 // indirect
6179
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
6280
github.com/pkg/errors v0.9.1 // indirect
63-
github.com/pmezard/go-difflib v1.0.0 // indirect
64-
github.com/prometheus/client_golang v1.14.0 // indirect
65-
github.com/prometheus/client_model v0.3.0 // indirect
66-
github.com/prometheus/common v0.37.0 // indirect
67-
github.com/prometheus/procfs v0.8.0 // indirect
68-
github.com/spf13/cobra v1.6.1 // indirect
81+
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
82+
github.com/prometheus/client_golang v1.19.1 // indirect
83+
github.com/prometheus/client_model v0.6.1 // indirect
84+
github.com/prometheus/common v0.55.0 // indirect
85+
github.com/prometheus/procfs v0.15.1 // indirect
86+
github.com/spf13/cobra v1.8.1 // indirect
6987
github.com/spf13/pflag v1.0.5 // indirect
70-
github.com/stoewer/go-strcase v1.2.0 // indirect
71-
go.etcd.io/etcd/api/v3 v3.5.5 // indirect
72-
go.etcd.io/etcd/client/pkg/v3 v3.5.5 // indirect
73-
go.etcd.io/etcd/client/v3 v3.5.5 // indirect
74-
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.35.0 // indirect
75-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.35.0 // indirect
76-
go.opentelemetry.io/otel v1.10.0 // indirect
77-
go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.10.0 // indirect
78-
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.10.0 // indirect
79-
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.10.0 // indirect
80-
go.opentelemetry.io/otel/metric v0.31.0 // indirect
81-
go.opentelemetry.io/otel/sdk v1.10.0 // indirect
82-
go.opentelemetry.io/otel/trace v1.10.0 // indirect
83-
go.opentelemetry.io/proto/otlp v0.19.0 // indirect
84-
go.uber.org/multierr v1.10.0 // indirect
85-
golang.org/x/crypto v0.5.0 // indirect
86-
golang.org/x/mod v0.11.0 // indirect
87-
golang.org/x/net v0.6.0 // indirect
88-
golang.org/x/oauth2 v0.5.0 // indirect
89-
golang.org/x/sync v0.1.0 // indirect
90-
golang.org/x/sys v0.5.0 // indirect
91-
golang.org/x/term v0.5.0 // indirect
92-
golang.org/x/text v0.7.0 // indirect
93-
golang.org/x/time v0.3.0 // indirect
94-
golang.org/x/tools v0.4.0 // indirect
95-
google.golang.org/appengine v1.6.7 // indirect
96-
google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f // indirect
97-
google.golang.org/grpc v1.49.0 // indirect
98-
google.golang.org/protobuf v1.28.1 // indirect
88+
github.com/stoewer/go-strcase v1.3.0 // indirect
89+
go.etcd.io/etcd/api/v3 v3.5.15 // indirect
90+
go.etcd.io/etcd/client/pkg/v3 v3.5.15 // indirect
91+
go.etcd.io/etcd/client/v3 v3.5.15 // indirect
92+
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.53.0 // indirect
93+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.53.0 // indirect
94+
go.opentelemetry.io/otel v1.28.0 // indirect
95+
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.28.0 // indirect
96+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.28.0 // indirect
97+
go.opentelemetry.io/otel/metric v1.28.0 // indirect
98+
go.opentelemetry.io/otel/sdk v1.28.0 // indirect
99+
go.opentelemetry.io/otel/trace v1.28.0 // indirect
100+
go.opentelemetry.io/proto/otlp v1.3.1 // indirect
101+
go.uber.org/multierr v1.11.0 // indirect
102+
golang.org/x/crypto v0.25.0 // indirect
103+
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
104+
golang.org/x/mod v0.19.0 // indirect
105+
golang.org/x/net v0.27.0 // indirect
106+
golang.org/x/oauth2 v0.21.0 // indirect
107+
golang.org/x/sync v0.7.0 // indirect
108+
golang.org/x/sys v0.22.0 // indirect
109+
golang.org/x/term v0.22.0 // indirect
110+
golang.org/x/text v0.16.0 // indirect
111+
golang.org/x/time v0.5.0 // indirect
112+
golang.org/x/tools v0.23.0 // indirect
113+
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
114+
google.golang.org/genproto v0.0.0-20240730163845-b1a4ccb954bf // indirect
115+
google.golang.org/genproto/googleapis/api v0.0.0-20240730163845-b1a4ccb954bf // indirect
116+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240730163845-b1a4ccb954bf // indirect
117+
google.golang.org/grpc v1.65.0 // indirect
118+
google.golang.org/protobuf v1.34.2 // indirect
99119
gopkg.in/inf.v0 v0.9.1 // indirect
100-
gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect
120+
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
101121
gopkg.in/yaml.v2 v2.4.0 // indirect
102122
gopkg.in/yaml.v3 v3.0.1 // indirect
103-
k8s.io/apiserver v0.26.0 // indirect
104-
k8s.io/component-base v0.26.0 // indirect
105-
k8s.io/klog/v2 v2.80.1 // indirect
106-
k8s.io/kms v0.26.0 // indirect
107-
k8s.io/kube-aggregator v0.26.0 // indirect
108-
k8s.io/kube-openapi v0.0.0-20221207184640-f3cff1453715 // indirect
109-
k8s.io/utils v0.0.0-20221128185143-99ec85e7a448 // indirect
110-
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.33 // indirect
111-
sigs.k8s.io/controller-runtime v0.14.1 // indirect
112-
sigs.k8s.io/gateway-api v0.6.0 // indirect
113-
sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 // indirect
114-
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
115-
sigs.k8s.io/yaml v1.3.0 // indirect
123+
k8s.io/apiserver v0.30.2 // indirect
124+
k8s.io/component-base v0.30.2 // indirect
125+
k8s.io/klog/v2 v2.130.1 // indirect
126+
k8s.io/kms v0.31.0-rc.0 // indirect
127+
k8s.io/kube-openapi v0.0.0-20240730131305-7a9a4e85957e // indirect
128+
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.30.3 // indirect
129+
sigs.k8s.io/controller-runtime v0.18.2 // indirect
130+
sigs.k8s.io/gateway-api v1.1.0 // indirect
131+
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
132+
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
133+
sigs.k8s.io/yaml v1.4.0 // indirect
116134
)

0 commit comments

Comments
 (0)