Skip to content

Commit 607e9d8

Browse files
authored
Merge pull request #37 from embik/1.30-prep
✨ Update to Kubernetes 1.30 and Go 1.22
2 parents 0416c83 + cd305f2 commit 607e9d8

File tree

91 files changed

+4406
-1722
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+4406
-1722
lines changed

.golangci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
run:
22
timeout: 10m
33
allow-parallel-runners: true
4-
skip-files:
5-
- '.+_expansion\.go'
64

75
linters:
86
disable-all: true
@@ -12,7 +10,6 @@ linters:
1210
- bidichk
1311
- bodyclose
1412
- containedctx
15-
- depguard
1613
- dupword
1714
- durationcheck
1815
- errcheck
@@ -126,6 +123,8 @@ linters-settings:
126123
issues:
127124
max-same-issues: 0
128125
max-issues-per-linter: 0
126+
exclude-files:
127+
- '.+_expansion\.go'
129128
exclude-rules:
130129
- linters:
131130
- unparam
@@ -137,3 +136,4 @@ issues:
137136
- linters:
138137
- gosec
139138
path: test/e2e/*
139+

.prow.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ presubmits:
77
preset-goproxy: "true"
88
spec:
99
containers:
10-
- image: ghcr.io/kcp-dev/infra/build:1.19.9-2
10+
- image: ghcr.io/kcp-dev/infra/build:1.22.2-1
1111
command:
1212
- make
1313
- verify
@@ -20,7 +20,7 @@ presubmits:
2020
preset-goproxy: "true"
2121
spec:
2222
containers:
23-
- image: ghcr.io/kcp-dev/infra/build:1.19.9-2
23+
- image: ghcr.io/kcp-dev/infra/build:1.22.2-1
2424
command:
2525
- make
2626
- lint

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ GOBIN_DIR=$(abspath ./bin )
2323
PATH := $(GOBIN_DIR):$(TOOLS_GOBIN_DIR):$(PATH)
2424
TMPDIR := $(shell mktemp -d)
2525

26-
CODE_GENERATOR_VER := a43d6e3492e34f209cc788bb5d094b9c5d0d2970
26+
CODE_GENERATOR_VER := b529ed3306a300ec73ce50439a5fb1c6409982f4
2727
CODE_GENERATOR_BIN := code-generator
2828
CODE_GENERATOR := $(TOOLS_DIR)/$(CODE_GENERATOR_BIN)-$(CODE_GENERATOR_VER)
2929
export CODE_GENERATOR # so hack scripts can use it
3030

3131
$(CODE_GENERATOR):
3232
GOBIN=$(TOOLS_GOBIN_DIR) $(GO_INSTALL) github.com/kcp-dev/code-generator/v2 $(CODE_GENERATOR_BIN) $(CODE_GENERATOR_VER)
3333

34-
OPENSHIFT_GOIMPORTS_VER := c72f1dc2e3aacfa00aece3391d938c9bc734e791
34+
OPENSHIFT_GOIMPORTS_VER := c70783e636f2213cac683f6865d88c5edace3157
3535
OPENSHIFT_GOIMPORTS_BIN := openshift-goimports
3636
OPENSHIFT_GOIMPORTS := $(TOOLS_DIR)/$(OPENSHIFT_GOIMPORTS_BIN)-$(OPENSHIFT_GOIMPORTS_VER)
3737
export OPENSHIFT_GOIMPORTS # so hack scripts can use it
@@ -43,7 +43,7 @@ imports: $(OPENSHIFT_GOIMPORTS)
4343
$(OPENSHIFT_GOIMPORTS) -m github.com/kcp-dev/client-go
4444
.PHONY: imports
4545

46-
GOLANGCI_LINT_VER := v1.50.1
46+
GOLANGCI_LINT_VER := v1.58.1
4747
GOLANGCI_LINT_BIN := golangci-lint
4848
GOLANGCI_LINT := $(TOOLS_DIR)/$(GOLANGCI_LINT_BIN)-$(GOLANGCI_LINT_VER)
4949

@@ -76,3 +76,7 @@ verify-codegen:
7676

7777
.PHONY: verify
7878
verify: verify-codegen
79+
80+
.PHONY: clean-generated
81+
clean-generated:
82+
grep --exclude Makefile -l 'Code generated by kcp code-generator. DO NOT EDIT.' -r . | xargs rm

apiextensions/informers/factory.go

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go.mod

Lines changed: 35 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
module github.com/kcp-dev/client-go
22

3-
go 1.19
3+
go 1.22.0
44

55
require (
66
github.com/evanphx/json-patch v5.6.0+incompatible
77
github.com/google/gnostic-models v0.6.8
88
github.com/kcp-dev/apimachinery/v2 v2.0.0-alpha.0.0.20230826151957-7189d0d1fe31
99
github.com/kcp-dev/logicalcluster/v3 v3.0.4
10-
k8s.io/api v0.28.2
11-
k8s.io/apiextensions-apiserver v0.28.2
12-
k8s.io/apimachinery v0.28.2
13-
k8s.io/client-go v0.28.2
14-
k8s.io/klog/v2 v2.100.1
10+
k8s.io/api v0.30.0
11+
k8s.io/apiextensions-apiserver v0.30.0
12+
k8s.io/apimachinery v0.30.0
13+
k8s.io/client-go v0.30.0
14+
k8s.io/klog/v2 v2.120.1
1515
)
1616

1717
require (
@@ -22,20 +22,20 @@ require (
2222
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
2323
github.com/cespare/xxhash/v2 v2.2.0 // indirect
2424
github.com/davecgh/go-spew v1.1.1 // indirect
25-
github.com/emicklei/go-restful/v3 v3.9.0 // indirect
25+
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
2626
github.com/felixge/httpsnoop v1.0.3 // indirect
27-
github.com/go-logr/logr v1.2.4 // indirect
27+
github.com/go-logr/logr v1.4.1 // indirect
2828
github.com/go-logr/stdr v1.2.2 // indirect
2929
github.com/go-openapi/jsonpointer v0.19.6 // indirect
3030
github.com/go-openapi/jsonreference v0.20.2 // indirect
3131
github.com/go-openapi/swag v0.22.3 // indirect
3232
github.com/gogo/protobuf v1.3.2 // indirect
33-
github.com/golang/protobuf v1.5.3 // indirect
34-
github.com/google/cel-go v0.16.1 // indirect
35-
github.com/google/go-cmp v0.5.9 // indirect
33+
github.com/golang/protobuf v1.5.4 // indirect
34+
github.com/google/cel-go v0.17.8 // indirect
35+
github.com/google/go-cmp v0.6.0 // indirect
3636
github.com/google/gofuzz v1.2.0 // indirect
3737
github.com/google/uuid v1.3.0 // indirect
38-
github.com/grpc-ecosystem/grpc-gateway/v2 v2.7.0 // indirect
38+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect
3939
github.com/imdario/mergo v0.3.6 // indirect
4040
github.com/josharian/intern v1.0.0 // indirect
4141
github.com/json-iterator/go v1.1.12 // indirect
@@ -51,39 +51,36 @@ require (
5151
github.com/prometheus/procfs v0.10.1 // indirect
5252
github.com/spf13/pflag v1.0.5 // indirect
5353
github.com/stoewer/go-strcase v1.2.0 // indirect
54-
github.com/stretchr/testify v1.8.4 // indirect
55-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.35.1 // indirect
56-
go.opentelemetry.io/otel v1.10.0 // indirect
57-
go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.10.0 // indirect
58-
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.10.0 // indirect
59-
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.10.0 // indirect
60-
go.opentelemetry.io/otel/metric v0.31.0 // indirect
61-
go.opentelemetry.io/otel/sdk v1.10.0 // indirect
62-
go.opentelemetry.io/otel/trace v1.10.0 // indirect
63-
go.opentelemetry.io/proto/otlp v0.19.0 // indirect
54+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.44.0 // indirect
55+
go.opentelemetry.io/otel v1.19.0 // indirect
56+
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.19.0 // indirect
57+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.19.0 // indirect
58+
go.opentelemetry.io/otel/metric v1.19.0 // indirect
59+
go.opentelemetry.io/otel/sdk v1.19.0 // indirect
60+
go.opentelemetry.io/otel/trace v1.19.0 // indirect
61+
go.opentelemetry.io/proto/otlp v1.0.0 // indirect
6462
golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e // indirect
65-
golang.org/x/net v0.13.0 // indirect
63+
golang.org/x/net v0.23.0 // indirect
6664
golang.org/x/oauth2 v0.10.0 // indirect
67-
golang.org/x/sync v0.2.0 // indirect
68-
golang.org/x/sys v0.12.0 // indirect
69-
golang.org/x/term v0.10.0 // indirect
70-
golang.org/x/text v0.11.0 // indirect
65+
golang.org/x/sync v0.6.0 // indirect
66+
golang.org/x/sys v0.18.0 // indirect
67+
golang.org/x/term v0.18.0 // indirect
68+
golang.org/x/text v0.14.0 // indirect
7169
golang.org/x/time v0.3.0 // indirect
7270
google.golang.org/appengine v1.6.7 // indirect
73-
google.golang.org/genproto v0.0.0-20230526161137-0005af68ea54 // indirect
74-
google.golang.org/genproto/googleapis/api v0.0.0-20230525234035-dd9d682886f9 // indirect
75-
google.golang.org/genproto/googleapis/rpc v0.0.0-20230525234030-28d5490b6b19 // indirect
76-
google.golang.org/grpc v1.54.0 // indirect
77-
google.golang.org/protobuf v1.31.0 // indirect
71+
google.golang.org/genproto/googleapis/api v0.0.0-20230726155614-23370e0ffb3e // indirect
72+
google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d // indirect
73+
google.golang.org/grpc v1.58.3 // indirect
74+
google.golang.org/protobuf v1.33.0 // indirect
7875
gopkg.in/inf.v0 v0.9.1 // indirect
7976
gopkg.in/yaml.v2 v2.4.0 // indirect
8077
gopkg.in/yaml.v3 v3.0.1 // indirect
81-
k8s.io/apiserver v0.28.2 // indirect
82-
k8s.io/component-base v0.28.2 // indirect
83-
k8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9 // indirect
84-
k8s.io/utils v0.0.0-20230406110748-d93618cff8a2 // indirect
85-
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.1.2 // indirect
78+
k8s.io/apiserver v0.30.0 // indirect
79+
k8s.io/component-base v0.30.0 // indirect
80+
k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 // indirect
81+
k8s.io/utils v0.0.0-20230726121419-3b25d923346b // indirect
82+
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.29.0 // indirect
8683
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
87-
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
84+
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
8885
sigs.k8s.io/yaml v1.3.0 // indirect
8986
)

0 commit comments

Comments
 (0)