Skip to content

Commit 0803211

Browse files
authored
upgrade Kubernetes 1.24(golang 1.18) (#3)
1 parent 6e3fc05 commit 0803211

File tree

5 files changed

+112
-100
lines changed

5 files changed

+112
-100
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the manager binary
2-
FROM golang:1.17 as builder
2+
FROM golang:1.18 as builder
33

44
WORKDIR /workspace
55
# Copy the Go Modules manifests

Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ IMG ?= ghcr.io/pfnet-research/gcp-workload-identity-federation-webhook:$(TAG)
55
IMG_LATEST ?= ghcr.io/pfnet-research/gcp-workload-identity-federation-webhook:latest
66

77
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
8-
ENVTEST_K8S_VERSION = 1.23
9-
ENVTEST_ARCH := $(shell hack/envtest-arch.sh)
8+
ENVTEST_K8S_VERSION = 1.24
109

1110
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
1211
ifeq (,$(shell go env GOBIN))
@@ -61,7 +60,7 @@ vet: ## Run go vet against code.
6160

6261
.PHONY: test
6362
test: manifests generate fmt vet envtest ## Run tests.
64-
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path --arch $(ENVTEST_ARCH))" go test ./... -coverprofile cover.out
63+
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path --arch $(shell go env GOARCH))" go test ./... -coverprofile cover.out
6564

6665
##@ Build
6766

@@ -120,7 +119,7 @@ ENVTEST ?= $(LOCALBIN)/setup-envtest
120119

121120
## Tool Versions
122121
KUSTOMIZE_VERSION ?= v4.5.5
123-
CONTROLLER_TOOLS_VERSION ?= v0.8.0
122+
CONTROLLER_TOOLS_VERSION ?= v0.9.2
124123

125124
KUSTOMIZE_INSTALL_SCRIPT ?= "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh"
126125
.PHONY: kustomize

go.mod

Lines changed: 29 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
module github.pfidev.jp/kubernetes/gcp-workload-identity-federation-webhook
22

3-
go 1.17
3+
go 1.18
44

55
require (
66
github.com/MakeNowJust/heredoc v1.0.0
77
github.com/go-logr/logr v1.2.0
88
github.com/onsi/ginkgo/v2 v2.1.4
99
github.com/onsi/gomega v1.19.0
10-
k8s.io/api v0.23.5
11-
k8s.io/apimachinery v0.23.5
12-
k8s.io/client-go v0.23.5
13-
k8s.io/utils v0.0.0-20211116205334-6203023598ed
14-
sigs.k8s.io/controller-runtime v0.11.2
10+
k8s.io/api v0.24.7
11+
k8s.io/apimachinery v0.24.7
12+
k8s.io/client-go v0.24.7
13+
k8s.io/utils v0.0.0-20220210201930-3a6ce19ff2f9
14+
sigs.k8s.io/controller-runtime v0.12.3
1515
)
1616

1717
require (
@@ -22,52 +22,61 @@ require (
2222
github.com/Azure/go-autorest/autorest/date v0.3.0 // indirect
2323
github.com/Azure/go-autorest/logger v0.2.1 // indirect
2424
github.com/Azure/go-autorest/tracing v0.6.0 // indirect
25+
github.com/PuerkitoBio/purell v1.1.1 // indirect
26+
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
2527
github.com/beorn7/perks v1.0.1 // indirect
26-
github.com/cespare/xxhash/v2 v2.1.1 // indirect
28+
github.com/cespare/xxhash/v2 v2.1.2 // indirect
2729
github.com/davecgh/go-spew v1.1.1 // indirect
30+
github.com/emicklei/go-restful v2.9.5+incompatible // indirect
2831
github.com/evanphx/json-patch v4.12.0+incompatible // indirect
2932
github.com/form3tech-oss/jwt-go v3.2.3+incompatible // indirect
3033
github.com/fsnotify/fsnotify v1.5.1 // indirect
3134
github.com/go-logr/zapr v1.2.0 // indirect
35+
github.com/go-openapi/jsonpointer v0.19.5 // indirect
36+
github.com/go-openapi/jsonreference v0.19.5 // indirect
37+
github.com/go-openapi/swag v0.19.14 // indirect
3238
github.com/gogo/protobuf v1.3.2 // indirect
3339
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
3440
github.com/golang/protobuf v1.5.2 // indirect
41+
github.com/google/gnostic v0.5.7-v3refs // indirect
3542
github.com/google/go-cmp v0.5.5 // indirect
3643
github.com/google/gofuzz v1.1.0 // indirect
3744
github.com/google/uuid v1.1.2 // indirect
38-
github.com/googleapis/gnostic v0.5.5 // indirect
3945
github.com/imdario/mergo v0.3.12 // indirect
46+
github.com/josharian/intern v1.0.0 // indirect
4047
github.com/json-iterator/go v1.1.12 // indirect
48+
github.com/mailru/easyjson v0.7.6 // indirect
4149
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
4250
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
4351
github.com/modern-go/reflect2 v1.0.2 // indirect
52+
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
4453
github.com/pkg/errors v0.9.1 // indirect
45-
github.com/prometheus/client_golang v1.11.0 // indirect
54+
github.com/prometheus/client_golang v1.12.1 // indirect
4655
github.com/prometheus/client_model v0.2.0 // indirect
47-
github.com/prometheus/common v0.28.0 // indirect
48-
github.com/prometheus/procfs v0.6.0 // indirect
56+
github.com/prometheus/common v0.32.1 // indirect
57+
github.com/prometheus/procfs v0.7.3 // indirect
4958
github.com/spf13/pflag v1.0.5 // indirect
5059
go.uber.org/atomic v1.7.0 // indirect
5160
go.uber.org/multierr v1.6.0 // indirect
5261
go.uber.org/zap v1.19.1 // indirect
53-
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 // indirect
62+
golang.org/x/crypto v0.0.0-20220214200702-86341886e292 // indirect
5463
golang.org/x/net v0.0.0-20220225172249-27dd8689420f // indirect
55-
golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f // indirect
64+
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 // indirect
5665
golang.org/x/sys v0.0.0-20220319134239-a9b59b0215f8 // indirect
5766
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
5867
golang.org/x/text v0.3.7 // indirect
59-
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac // indirect
68+
golang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect
6069
gomodules.xyz/jsonpatch/v2 v2.2.0 // indirect
6170
google.golang.org/appengine v1.6.7 // indirect
6271
google.golang.org/protobuf v1.27.1 // indirect
6372
gopkg.in/inf.v0 v0.9.1 // indirect
6473
gopkg.in/yaml.v2 v2.4.0 // indirect
65-
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
66-
k8s.io/apiextensions-apiserver v0.23.5 // indirect
67-
k8s.io/component-base v0.23.5 // indirect
68-
k8s.io/klog/v2 v2.30.0 // indirect
69-
k8s.io/kube-openapi v0.0.0-20211115234752-e816edb12b65 // indirect
70-
sigs.k8s.io/json v0.0.0-20211020170558-c049b76a60c6 // indirect
74+
gopkg.in/yaml.v3 v3.0.1 // indirect
75+
k8s.io/apiextensions-apiserver v0.24.2 // indirect
76+
k8s.io/component-base v0.24.2 // indirect
77+
k8s.io/klog/v2 v2.60.1 // indirect
78+
k8s.io/kube-openapi v0.0.0-20220328201542-3ee0da9b0b42 // indirect
79+
sigs.k8s.io/json v0.0.0-20211208200746-9f7c6b3444d2 // indirect
7180
sigs.k8s.io/structured-merge-diff/v4 v4.2.1 // indirect
7281
sigs.k8s.io/yaml v1.3.0 // indirect
7382
)

0 commit comments

Comments
 (0)