Skip to content

Commit 5f0591e

Browse files
authored
Merge pull request #26 from stackitcloud/feature/bump-go-version
feat: bump go version + linter
2 parents d691966 + 5c6551d commit 5f0591e

15 files changed

+62
-104
lines changed

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
test:
1919
strategy:
2020
matrix:
21-
go-version: [1.20.x]
21+
go-version: [1.23.x]
2222
os: [ubuntu-latest]
2323
runs-on: ${{ matrix.os }}
2424

.golangci.yaml

+14-74
Original file line numberDiff line numberDiff line change
@@ -15,49 +15,21 @@ run:
1515
build-tags:
1616
- mytag
1717

18-
# which dirs to skip: issues from them won't be reported;
19-
# can use regexp here: generated.*, regexp is applied on full path;
20-
# default value is empty list, but default dirs are skipped independently
21-
# from this option's value (see skip-dirs-use-default).
22-
# "/" will be replaced by current OS file path separator to properly work
23-
# on Windows.
24-
skip-dirs:
25-
- "./include/*"
26-
27-
# default is true. Enables skipping of directories:
28-
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
29-
skip-dirs-use-default: true
30-
31-
# which files to skip: they will be analyzed, but issues from them
32-
# won't be reported. Default value is empty list, but there is
33-
# no need to include all autogenerated files, we confidently recognize
34-
# autogenerated files. If it's not please let us know.
35-
# "/" will be replaced by current OS file path separator to properly work
36-
# on Windows.
37-
skip-files:
38-
- ".*\\.my\\.go$"
39-
- lib/bad.go
40-
4118
# Allow multiple parallel golangci-lint instances running.
4219
# If false (default) - golangci-lint acquires file lock on start.
4320
allow-parallel-runners: false
4421

22+
go: "1.23.5"
23+
4524

4625
# output configuration options
4726
output:
48-
# colored-line-number|line-number|json|tab|checkstyle|code-climate|junit-xml|github-actions
49-
# default is "colored-line-number"
50-
format: colored-line-number
51-
5227
# print lines of code with issue, default is true
5328
print-issued-lines: true
5429

5530
# print linter name in the end of issue text, default is true
5631
print-linter-name: true
5732

58-
# make issues output unique by line, default is true
59-
uniq-by-line: true
60-
6133
# add a prefix to the output file references; default is no prefix
6234
path-prefix: ""
6335

@@ -147,10 +119,13 @@ linters-settings:
147119
statements: 40
148120

149121
gci:
150-
# put imports beginning with prefix after 3rd-party packages;
151-
# only support one prefix
152-
# if not set, use goimports.local-prefixes
153-
local-prefixes: github.com/org/project
122+
sections:
123+
- standard
124+
- default
125+
- prefix(github.com/stackitcloud/external-dns-stackit-webhook)
126+
127+
goimports:
128+
local-prefixes: github.com/stackitcloud/external-dns-stackit-webhook
154129

155130
gocognit:
156131
# minimal code complexity to report, 30 by default (but we recommend 10-20)
@@ -268,13 +243,6 @@ linters-settings:
268243
# simplify code: gofmt with `-s` option, true by default
269244
simplify: true
270245

271-
gofumpt:
272-
# Select the Go version to target. The default is `1.15`.
273-
lang-version: "1.15"
274-
275-
# Choose whether or not to use the extra rules that are disabled
276-
# by default
277-
extra-rules: false
278246

279247
goheader:
280248
values:
@@ -305,11 +273,6 @@ linters-settings:
305273
template-path:
306274
# also as alternative of directive 'template' you may put the path to file with the template source
307275

308-
goimports:
309-
# put imports beginning with prefix after 3rd-party packages;
310-
# it's a comma-separated list of prefixes
311-
local-prefixes: github.com/org/project
312-
313276
golint:
314277
# minimal confidence for issues, default is 0.8
315278
min-confidence: 0.8
@@ -383,15 +346,10 @@ linters-settings:
383346
truncate: "32"
384347

385348
gosimple:
386-
# Select the Go version to target. The default is '1.13'.
387-
go: "1.15"
388349
# https://staticcheck.io/docs/options#checks
389350
checks: [ "all" ]
390351

391352
govet:
392-
# report about shadowed variables
393-
check-shadowing: true
394-
395353
# settings per analyzer
396354
settings:
397355
printf: # analyzer name, run `go tool vet help` to see all analyzers
@@ -405,9 +363,9 @@ linters-settings:
405363
# run `go tool vet help` to see all analyzers
406364
enable:
407365
- atomicalign
408-
enable-all: false
409-
disable:
410366
- shadow
367+
368+
enable-all: false
411369
disable-all: false
412370

413371
depguard:
@@ -551,14 +509,10 @@ linters-settings:
551509
allowFloats: "0.0,0.,1.0,1.,2.0,2."
552510

553511
staticcheck:
554-
# Select the Go version to target. The default is '1.13'.
555-
go: "1.15"
556512
# https://staticcheck.io/docs/options#checks
557513
checks: [ "all" ]
558514

559515
stylecheck:
560-
# Select the Go version to target. The default is '1.13'.
561-
go: "1.15"
562516
# https://staticcheck.io/docs/options#checks
563517
checks: [ "all", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022" ]
564518
# https://staticcheck.io/docs/options#dot_import_whitelist
@@ -600,11 +554,6 @@ linters-settings:
600554
name: true
601555
begin: true
602556

603-
tenv:
604-
# The option `all` will run against whole test files (`_test.go`) regardless of method/function signatures.
605-
# By default, only methods that take `*testing.T`, `*testing.B`, and `testing.TB` as arguments are checked.
606-
all: false
607-
608557
unparam:
609558
# Inspect exported functions, default is false. Set to true if no external program/library imports your code.
610559
# XXX: if you enable this setting, unparam will report a lot of false-positives in text editors:
@@ -613,8 +562,6 @@ linters-settings:
613562
check-exported: false
614563

615564
unused:
616-
# Select the Go version to target. The default is '1.13'.
617-
go: "1.15"
618565

619566
varnamelen:
620567
# The longest distance, in source lines, that is being considered a "small scope." (defaults to 5)
@@ -674,7 +621,6 @@ linters:
674621
- errname
675622
- errorlint
676623
- exhaustive
677-
- exportloopref
678624
- forcetypeassert
679625
- funlen
680626
- gci
@@ -685,7 +631,6 @@ linters:
685631
- godot
686632
- godox
687633
- gofmt
688-
- gofumpt
689634
- goheader
690635
- gomoddirectives
691636
- gomodguard
@@ -708,12 +653,12 @@ linters:
708653
- predeclared
709654
- promlinter
710655
- staticcheck
711-
- tenv
712656
- thelper
713657
- tparallel
714658
- unconvert
715659
- unparam
716660
- unused
661+
- usetesting
717662
- whitespace
718663
- paralleltest
719664
enable-all: false
@@ -726,14 +671,11 @@ linters:
726671
- goimports
727672
- lll
728673
- stylecheck
729-
- gomnd
730674
- testpackage
731675
- wrapcheck
732-
- golint
733-
- scopelint
734676
- typecheck
735677
- tagliatelle
736-
- goerr113
678+
- err113
737679
- gochecknoglobals
738680
- wsl
739681
- revive
@@ -819,12 +761,10 @@ issues:
819761
# Default is false.
820762
new: false
821763

822-
# Show only new issues created after git revision `REV`
823-
new-from-rev: REV
824-
825764
# Fix found issues (if it's supported by the linter)
826765
fix: true
827766

767+
828768
severity:
829769
# Default value is empty string.
830770
# Set the default severity for issues. If severity rules are defined and the issues

Makefile

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

44
VERSION ?= 0.0.1

cmd/webhook/cmd/root.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ import (
88
"github.com/spf13/cobra"
99
"github.com/spf13/pflag"
1010
"github.com/spf13/viper"
11+
"go.uber.org/zap"
12+
"go.uber.org/zap/zapcore"
13+
"sigs.k8s.io/external-dns/endpoint"
14+
1115
"github.com/stackitcloud/external-dns-stackit-webhook/internal/stackitprovider"
1216
"github.com/stackitcloud/external-dns-stackit-webhook/pkg/api"
1317
"github.com/stackitcloud/external-dns-stackit-webhook/pkg/metrics"
1418
"github.com/stackitcloud/external-dns-stackit-webhook/pkg/stackit"
15-
"go.uber.org/zap"
16-
"go.uber.org/zap/zapcore"
17-
"sigs.k8s.io/external-dns/endpoint"
1819
)
1920

2021
var (

go.mod

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
module github.com/stackitcloud/external-dns-stackit-webhook
22

3-
go 1.20
3+
go 1.23.0
4+
5+
toolchain go1.23.5
46

57
require (
68
github.com/goccy/go-json v0.10.2
@@ -64,9 +66,9 @@ require (
6466
github.com/valyala/tcplisten v1.0.0 // indirect
6567
go.uber.org/multierr v1.11.0 // indirect
6668
golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect
67-
golang.org/x/net v0.33.0 // indirect
68-
golang.org/x/sys v0.28.0 // indirect
69-
golang.org/x/text v0.21.0 // indirect
69+
golang.org/x/net v0.36.0 // indirect
70+
golang.org/x/sys v0.30.0 // indirect
71+
golang.org/x/text v0.22.0 // indirect
7072
google.golang.org/protobuf v1.33.0 // indirect
7173
gopkg.in/inf.v0 v0.9.1 // indirect
7274
gopkg.in/ini.v1 v1.67.0 // indirect

go.sum

+12-6
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5y
6666
github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk=
6767
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
6868
github.com/frankban/quicktest v1.14.4 h1:g2rn0vABPOOXmZUj+vbmUp0lPoXEMuhTpIluN0XL9UY=
69+
github.com/frankban/quicktest v1.14.4/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0=
6970
github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY=
7071
github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw=
7172
github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=
@@ -173,9 +174,11 @@ github.com/klauspost/compress v1.17.1/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQs
173174
github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg=
174175
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
175176
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
177+
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
176178
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
177179
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
178180
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
181+
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
179182
github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY=
180183
github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0=
181184
github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=
@@ -271,6 +274,7 @@ go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
271274
go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
272275
go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk=
273276
go.uber.org/goleak v1.2.0 h1:xqgm/S+aQvhWFTtR0XK3Jvg7z8kGV8P4X14IzwN3Eqk=
277+
go.uber.org/goleak v1.2.0/go.mod h1:XJYK+MuIchqpmGmUSAzotztawfKvYLUIgg7guXrwVUo=
274278
go.uber.org/mock v0.3.0 h1:3mUxI1No2/60yUYax92Pt8eNOEecx2D3lcXZh2NEZJo=
275279
go.uber.org/mock v0.3.0/go.mod h1:a6FSlNadKUHUa9IP5Vyt1zh4fC7uAwxMutEAscFbkZc=
276280
go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=
@@ -355,8 +359,8 @@ golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v
355359
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
356360
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
357361
golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco=
358-
golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I=
359-
golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4=
362+
golang.org/x/net v0.36.0 h1:vWF2fRbw4qslQsQzgFqZff+BItCvGFQqKzKIzx1rmoA=
363+
golang.org/x/net v0.36.0/go.mod h1:bFmbeoIPfrw4sMHNhb4J9f6+tPziuGjq7Jk/38fxi1I=
360364
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
361365
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
362366
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
@@ -419,8 +423,8 @@ golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBc
419423
golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
420424
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
421425
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
422-
golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA=
423-
golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
426+
golang.org/x/sys v0.30.0 h1:QjkSwP/36a20jFYWkSue1YwXzLmsV5Gfq7Eiy72C1uc=
427+
golang.org/x/sys v0.30.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
424428
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
425429
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
426430
golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
@@ -433,8 +437,8 @@ golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
433437
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
434438
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
435439
golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
436-
golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo=
437-
golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ=
440+
golang.org/x/text v0.22.0 h1:bofq7m3/HAFvbF51jz3Q9wLg3jkvSPuiZu/pD1XwgtM=
441+
golang.org/x/text v0.22.0/go.mod h1:YRoo4H8PVmsu+E3Ou7cqLVH8oXWIHVoX0jqUWALQhfY=
438442
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
439443
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
440444
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
@@ -587,6 +591,7 @@ google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHh
587591
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
588592
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
589593
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
594+
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
590595
gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
591596
gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc=
592597
gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw=
@@ -622,3 +627,4 @@ sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd/go.mod h1:B8JuhiUyNFVKdsE8h6
622627
sigs.k8s.io/structured-merge-diff/v4 v4.3.0 h1:UZbZAZfX0wV2zr7YZorDz6GXROfDFj6LvqCRm4VUVKk=
623628
sigs.k8s.io/structured-merge-diff/v4 v4.3.0/go.mod h1:N8hJocpFajUSSeSJ9bOZ77VzejKZaXsTtZo4/u7Io08=
624629
sigs.k8s.io/yaml v1.3.0 h1:a2VclLzOGrwOHDiV8EfBGhvjHvP46CtW5j6POvhYGGo=
630+
sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8=

pkg/api/adjust_endpoints_test.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@ import (
88

99
"github.com/goccy/go-json"
1010
"github.com/gofiber/fiber/v2"
11-
"github.com/stackitcloud/external-dns-stackit-webhook/pkg/api"
12-
mock_provider "github.com/stackitcloud/external-dns-stackit-webhook/pkg/api/mock"
1311
"github.com/stretchr/testify/assert"
1412
"go.uber.org/mock/gomock"
1513
"go.uber.org/zap"
1614
"sigs.k8s.io/external-dns/endpoint"
15+
16+
"github.com/stackitcloud/external-dns-stackit-webhook/pkg/api"
17+
mock_provider "github.com/stackitcloud/external-dns-stackit-webhook/pkg/api/mock"
1718
)
1819

1920
func TestWebhook_AdjustEndpoints(t *testing.T) {

pkg/api/api.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ import (
1515
fiberlogger "github.com/gofiber/fiber/v2/middleware/logger"
1616
"github.com/gofiber/fiber/v2/middleware/pprof"
1717
fiberrecover "github.com/gofiber/fiber/v2/middleware/recover"
18-
"github.com/stackitcloud/external-dns-stackit-webhook/pkg/metrics"
1918
"go.uber.org/zap"
2019
"sigs.k8s.io/external-dns/provider"
20+
21+
"github.com/stackitcloud/external-dns-stackit-webhook/pkg/metrics"
2122
)
2223

2324
type Api interface {

pkg/api/api_test.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ import (
88
"testing"
99
"time"
1010

11-
"github.com/stackitcloud/external-dns-stackit-webhook/pkg/api"
12-
mock_provider "github.com/stackitcloud/external-dns-stackit-webhook/pkg/api/mock"
1311
"github.com/stretchr/testify/assert"
1412
"go.uber.org/mock/gomock"
1513
"go.uber.org/zap"
14+
15+
"github.com/stackitcloud/external-dns-stackit-webhook/pkg/api"
16+
mock_provider "github.com/stackitcloud/external-dns-stackit-webhook/pkg/api/mock"
1617
)
1718

1819
func TestApi(t *testing.T) {

0 commit comments

Comments
 (0)