Skip to content

Commit 8b63a36

Browse files
authored
Merge pull request #23 from splattner/upgrade-dependencies
Upgrade dependencies and align with cert-manager/webhook-example
2 parents 365a0db + d6f3d9a commit 8b63a36

File tree

7 files changed

+499
-689
lines changed

7 files changed

+499
-689
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
cert-manager-webhook-dnsimple
1616

1717
# Ignore test binaries
18-
__main__/
18+
__test__/

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.15.6-alpine3.12 AS build_deps
1+
FROM golang:1.20-alpine AS build_deps
22

33
RUN apk add --no-cache git
44

@@ -16,7 +16,7 @@ COPY . .
1616

1717
RUN CGO_ENABLED=0 go build -o webhook -ldflags '-w -extldflags "-static"' .
1818

19-
FROM alpine:3.12.1
19+
FROM alpine:3.17
2020

2121
RUN apk add --no-cache ca-certificates
2222

Makefile

+25-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,34 @@
1+
GO ?= $(shell which go)
2+
OS ?= $(shell $(GO) env GOOS)
3+
ARCH ?= $(shell $(GO) env GOARCH)
4+
15
IMAGE_NAME := "neoskop/cert-manager-webhook-dnsimple"
26
IMAGE_TAG := "latest"
37

48
OUT := $(shell pwd)/_out
59

10+
KUBE_VERSION=1.25.0
11+
612
$(shell mkdir -p "$(OUT)")
13+
export TEST_ASSET_ETCD=_test/kubebuilder/etcd
14+
export TEST_ASSET_KUBE_APISERVER=_test/kubebuilder/kube-apiserver
15+
export TEST_ASSET_KUBECTL=_test/kubebuilder/kubectl
16+
17+
test: _test/kubebuilder
18+
$(GO) test -v .
19+
20+
_test/kubebuilder:
21+
curl -fsSL https://go.kubebuilder.io/test-tools/$(KUBE_VERSION)/$(OS)/$(ARCH) -o kubebuilder-tools.tar.gz
22+
mkdir -p _test/kubebuilder
23+
tar -xvf kubebuilder-tools.tar.gz
24+
mv kubebuilder/bin/* _test/kubebuilder/
25+
rm kubebuilder-tools.tar.gz
26+
rm -R kubebuilder
27+
28+
clean: clean-kubebuilder
729

8-
verify:
9-
go test -v .
30+
clean-kubebuilder:
31+
rm -Rf _test/kubebuilder
1032

1133
build:
1234
docker build -t "$(IMAGE_NAME):$(IMAGE_TAG)" .
@@ -17,4 +39,4 @@ rendered-manifest.yaml:
1739
--name dnsimple-webhook \
1840
--set image.repository=$(IMAGE_NAME) \
1941
--set image.tag=$(IMAGE_TAG) \
20-
deploy/dnsimple-webhook > "$(OUT)/rendered-manifest.yaml"
42+
deploy/dnsimple-webhook > "$(OUT)/rendered-manifest.yaml"

go.mod

+107-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,113 @@
11
module github.com/neoskop/cert-manager-webhook-dnsimple
22

3-
go 1.13
3+
go 1.20
44

55
require (
6-
github.com/dnsimple/dnsimple-go v0.63.0
7-
github.com/jetstack/cert-manager v1.1.0
8-
k8s.io/apiextensions-apiserver v0.19.0
9-
k8s.io/apimachinery v0.19.0
10-
k8s.io/client-go v0.19.0
6+
github.com/cert-manager/cert-manager v1.12.1
7+
github.com/dnsimple/dnsimple-go v1.2.0
8+
k8s.io/apiextensions-apiserver v0.27.3
9+
k8s.io/apimachinery v0.27.3
10+
k8s.io/client-go v0.27.3
1111
k8s.io/klog v1.0.0
1212
)
13+
14+
require (
15+
github.com/NYTimes/gziphandler v1.1.1 // indirect
16+
github.com/antlr/antlr4/runtime/Go/antlr v1.4.10 // indirect
17+
github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a // indirect
18+
github.com/beorn7/perks v1.0.1 // indirect
19+
github.com/blang/semver/v4 v4.0.0 // indirect
20+
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
21+
github.com/cespare/xxhash/v2 v2.2.0 // indirect
22+
github.com/coreos/go-semver v0.3.0 // indirect
23+
github.com/coreos/go-systemd/v22 v22.4.0 // indirect
24+
github.com/davecgh/go-spew v1.1.1 // indirect
25+
github.com/emicklei/go-restful/v3 v3.9.0 // indirect
26+
github.com/evanphx/json-patch v5.6.0+incompatible // indirect
27+
github.com/evanphx/json-patch/v5 v5.6.0 // indirect
28+
github.com/felixge/httpsnoop v1.0.3 // indirect
29+
github.com/fsnotify/fsnotify v1.6.0 // indirect
30+
github.com/go-logr/logr v1.2.4 // indirect
31+
github.com/go-logr/stdr v1.2.2 // indirect
32+
github.com/go-logr/zapr v1.2.4 // indirect
33+
github.com/go-openapi/jsonpointer v0.19.6 // indirect
34+
github.com/go-openapi/jsonreference v0.20.1 // indirect
35+
github.com/go-openapi/swag v0.22.3 // indirect
36+
github.com/gogo/protobuf v1.3.2 // indirect
37+
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
38+
github.com/golang/protobuf v1.5.3 // indirect
39+
github.com/google/cel-go v0.12.6 // indirect
40+
github.com/google/gnostic v0.6.9 // indirect
41+
github.com/google/go-cmp v0.5.9 // indirect
42+
github.com/google/go-querystring v1.1.0 // indirect
43+
github.com/google/gofuzz v1.2.0 // indirect
44+
github.com/google/uuid v1.3.0 // indirect
45+
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect
46+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.7.0 // indirect
47+
github.com/imdario/mergo v0.3.12 // indirect
48+
github.com/inconshreveable/mousetrap v1.1.0 // indirect
49+
github.com/josharian/intern v1.0.0 // indirect
50+
github.com/json-iterator/go v1.1.12 // indirect
51+
github.com/mailru/easyjson v0.7.7 // indirect
52+
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
53+
github.com/miekg/dns v1.1.50 // indirect
54+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
55+
github.com/modern-go/reflect2 v1.0.2 // indirect
56+
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
57+
github.com/pkg/errors v0.9.1 // indirect
58+
github.com/prometheus/client_golang v1.15.1 // indirect
59+
github.com/prometheus/client_model v0.4.0 // indirect
60+
github.com/prometheus/common v0.42.0 // indirect
61+
github.com/prometheus/procfs v0.9.0 // indirect
62+
github.com/spf13/cobra v1.7.0 // indirect
63+
github.com/spf13/pflag v1.0.5 // indirect
64+
github.com/stoewer/go-strcase v1.2.0 // indirect
65+
go.etcd.io/etcd/api/v3 v3.5.7 // indirect
66+
go.etcd.io/etcd/client/pkg/v3 v3.5.7 // indirect
67+
go.etcd.io/etcd/client/v3 v3.5.7 // indirect
68+
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.35.0 // indirect
69+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.39.0 // indirect
70+
go.opentelemetry.io/otel v1.15.0 // indirect
71+
go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.15.0 // indirect
72+
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.15.0 // indirect
73+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.15.0 // indirect
74+
go.opentelemetry.io/otel/metric v0.36.0 // indirect
75+
go.opentelemetry.io/otel/sdk v1.15.0 // indirect
76+
go.opentelemetry.io/otel/trace v1.15.0 // indirect
77+
go.opentelemetry.io/proto/otlp v0.19.0 // indirect
78+
go.uber.org/atomic v1.9.0 // indirect
79+
go.uber.org/multierr v1.6.0 // indirect
80+
go.uber.org/zap v1.24.0 // indirect
81+
golang.org/x/crypto v0.6.0 // indirect
82+
golang.org/x/mod v0.10.0 // indirect
83+
golang.org/x/net v0.10.0 // indirect
84+
golang.org/x/oauth2 v0.5.0 // indirect
85+
golang.org/x/sync v0.2.0 // indirect
86+
golang.org/x/sys v0.8.0 // indirect
87+
golang.org/x/term v0.8.0 // indirect
88+
golang.org/x/text v0.9.0 // indirect
89+
golang.org/x/time v0.3.0 // indirect
90+
golang.org/x/tools v0.9.1 // indirect
91+
google.golang.org/appengine v1.6.7 // indirect
92+
google.golang.org/genproto v0.0.0-20230223222841-637eb2293923 // indirect
93+
google.golang.org/grpc v1.54.0 // indirect
94+
google.golang.org/protobuf v1.30.0 // indirect
95+
gopkg.in/inf.v0 v0.9.1 // indirect
96+
gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect
97+
gopkg.in/yaml.v2 v2.4.0 // indirect
98+
gopkg.in/yaml.v3 v3.0.1 // indirect
99+
k8s.io/api v0.27.3 // indirect
100+
k8s.io/apiserver v0.27.3 // indirect
101+
k8s.io/component-base v0.27.3 // indirect
102+
k8s.io/klog/v2 v2.100.1 // indirect
103+
k8s.io/kms v0.27.3 // indirect
104+
k8s.io/kube-aggregator v0.27.2 // indirect
105+
k8s.io/kube-openapi v0.0.0-20230515203736-54b630e78af5 // indirect
106+
k8s.io/utils v0.0.0-20230505201702-9f6742963106 // indirect
107+
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.1.2 // indirect
108+
sigs.k8s.io/controller-runtime v0.15.0 // indirect
109+
sigs.k8s.io/gateway-api v0.7.0 // indirect
110+
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
111+
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
112+
sigs.k8s.io/yaml v1.3.0 // indirect
113+
)

0 commit comments

Comments
 (0)