Skip to content

Commit 963fe16

Browse files
upgrade to latest dependencies
bumping knative.dev/pkg 44579e9...3c3a920: > 3c3a920 Bump google.golang.org/grpc from 1.72.1 to 1.72.2 (# 3181) bumping knative.dev/reconciler-test f46fa65...9a20896: > 9a20896 upgrade to latest dependencies (# 797) bumping knative.dev/serving 92b23aa...cf4b1ae: > cf4b1ae Fix request hanging after response start timeout expires (# 15899) > 80d7335 Correct tryTimeoutAndWriteError to write timeout regardless of prior writes (# 15900) > 794c02f Update net-kourier nightly (# 15912) > fbeabf6 upgrade to latest dependencies (# 15906) > 5470b9f Update net-contour nightly (# 15911) > 0a95f77 Update net-kourier nightly (# 15909) > 0d710f5 Update net-gateway-api nightly (# 15910) > d5907a3 Update net-kourier nightly (# 15901) > 817f739 Bump chainguard-dev/actions in the github-actions group (# 15905) bumping knative.dev/networking eea9fd8...e132e24: > e132e24 upgrade to latest dependencies (# 1065) bumping google.golang.org/grpc 4cf3cf7...6135a73: > 6135a73 Change version to v1.72.2 (# 8357) > eef8c9c delegatingresolver: avoid proxy for resolved addresses in NO_PROXY env (# 8329) (# 8353) > 3b5fa74 balancer/least_request : Fix panic while handling resolver errors (# 8333) (# 8339) > edf643f Change version to v1.72.2-dev (# 8326) bumping knative.dev/eventing 40bac3c...da948cb: > da948cb Return assigned port for HTTPEventReceiver (# 8596) > 3edf526 [main] Upgrade to latest dependencies (# 8595) bumping knative.dev/caching e27e907...4217d80: > 4217d80 upgrade to latest dependencies (# 938) > bb96738 upgrade to latest dependencies (# 937) Signed-off-by: Knative Automation <[email protected]>
1 parent f9f07b5 commit 963fe16

File tree

7 files changed

+93
-54
lines changed

7 files changed

+93
-54
lines changed

go.mod

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ require (
2020
k8s.io/apimachinery v0.32.2
2121
k8s.io/client-go v0.32.2
2222
k8s.io/code-generator v0.32.2
23-
knative.dev/caching v0.0.0-20250515023348-e27e90746aeb
24-
knative.dev/eventing v0.45.1-0.20250526160117-40bac3cce0e6
23+
knative.dev/caching v0.0.0-20250603022924-4217d80f9aad
24+
knative.dev/eventing v0.45.1-0.20250603123125-da948cba5099
2525
knative.dev/hack v0.0.0-20250514121446-f525e187efdc
26-
knative.dev/pkg v0.0.0-20250520014526-44579e9ce5ed
27-
knative.dev/reconciler-test v0.0.0-20250516121650-f46fa6544a97
28-
knative.dev/serving v0.45.1-0.20250529121820-92b23aa11d52
26+
knative.dev/pkg v0.0.0-20250602175424-3c3a920206ea
27+
knative.dev/reconciler-test v0.0.0-20250602074324-9a20896ca854
28+
knative.dev/serving v0.45.1-0.20250605124427-cf4b1ae4810d
2929
sigs.k8s.io/yaml v1.4.0
3030
)
3131

@@ -145,7 +145,7 @@ require (
145145
google.golang.org/genproto v0.0.0-20240903143218-8af14fe29dc1 // indirect
146146
google.golang.org/genproto/googleapis/api v0.0.0-20250218202821-56aae31c358a // indirect
147147
google.golang.org/genproto/googleapis/rpc v0.0.0-20250218202821-56aae31c358a // indirect
148-
google.golang.org/grpc v1.72.1 // indirect
148+
google.golang.org/grpc v1.72.2 // indirect
149149
google.golang.org/protobuf v1.36.6 // indirect
150150
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
151151
gopkg.in/inf.v0 v0.9.1 // indirect
@@ -157,7 +157,7 @@ require (
157157
k8s.io/klog/v2 v2.130.1 // indirect
158158
k8s.io/kube-openapi v0.0.0-20241212222426-2c72e554b1e7 // indirect
159159
k8s.io/utils v0.0.0-20241210054802-24370beab758 // indirect
160-
knative.dev/networking v0.0.0-20250515023348-eea9fd8d72f2 // indirect
160+
knative.dev/networking v0.0.0-20250602222425-e132e247fa39 // indirect
161161
sigs.k8s.io/controller-runtime v0.19.0 // indirect
162162
sigs.k8s.io/gateway-api v1.1.0 // indirect
163163
sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 // indirect

go.sum

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1599,8 +1599,8 @@ google.golang.org/grpc v1.46.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACu
15991599
google.golang.org/grpc v1.46.2/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk=
16001600
google.golang.org/grpc v1.49.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI=
16011601
google.golang.org/grpc v1.51.0/go.mod h1:wgNDFcnuBGmxLKI/qn4T+m5BtEBYXJPvibbUPsAIPww=
1602-
google.golang.org/grpc v1.72.1 h1:HR03wO6eyZ7lknl75XlxABNVLLFc2PAb6mHlYh756mA=
1603-
google.golang.org/grpc v1.72.1/go.mod h1:wH5Aktxcg25y1I3w7H69nHfXdOG3UiadoBtjh3izSDM=
1602+
google.golang.org/grpc v1.72.2 h1:TdbGzwb82ty4OusHWepvFWGLgIbNo1/SUynEN0ssqv8=
1603+
google.golang.org/grpc v1.72.2/go.mod h1:wH5Aktxcg25y1I3w7H69nHfXdOG3UiadoBtjh3izSDM=
16041604
google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw=
16051605
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
16061606
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
@@ -1714,20 +1714,20 @@ k8s.io/utils v0.0.0-20210819203725-bdf08cb9a70a/go.mod h1:jPW/WVKK9YHAvNhRxK0md/
17141714
k8s.io/utils v0.0.0-20230209194617-a36077c30491/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
17151715
k8s.io/utils v0.0.0-20241210054802-24370beab758 h1:sdbE21q2nlQtFh65saZY+rRM6x6aJJI8IUa1AmH/qa0=
17161716
k8s.io/utils v0.0.0-20241210054802-24370beab758/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
1717-
knative.dev/caching v0.0.0-20250515023348-e27e90746aeb h1:KwHEtzmX8E6bcU3uHBn+jTo/puiUSaonyHgbgdam25k=
1718-
knative.dev/caching v0.0.0-20250515023348-e27e90746aeb/go.mod h1:z8YjsYR5SxPW8mSkKf7To6Ye6gJlnS/uSed8Cguyepg=
1719-
knative.dev/eventing v0.45.1-0.20250526160117-40bac3cce0e6 h1:fniykATajL1VvDiZQfpgWg1wR000KIYJCL7oEpxIvJU=
1720-
knative.dev/eventing v0.45.1-0.20250526160117-40bac3cce0e6/go.mod h1:WeMsyA/c2/QEYAxSQrtCDr2tDegvkVxHlqlSuC9GS9k=
1717+
knative.dev/caching v0.0.0-20250603022924-4217d80f9aad h1:RPiGjQ2++UzvrfwhSQfnizPEZiTSy54fSEE58C1PLiA=
1718+
knative.dev/caching v0.0.0-20250603022924-4217d80f9aad/go.mod h1:BcJikEZAgMHlWT6TmP6TMrQRv82/5tfRAEdPxVbC2fw=
1719+
knative.dev/eventing v0.45.1-0.20250603123125-da948cba5099 h1:/YPJyTvzKjDNvc4upX+JsFXRb0tGwTWFca+/o+lRk3E=
1720+
knative.dev/eventing v0.45.1-0.20250603123125-da948cba5099/go.mod h1:EsMEGF9zAiS2mJ2P2r1HCTWQ+Zv96ytiSqttIMeqNj0=
17211721
knative.dev/hack v0.0.0-20250514121446-f525e187efdc h1:8HmclJlA0zNE/G1SkgdC3/IFSSyhaSz2iIhihU6YbEo=
17221722
knative.dev/hack v0.0.0-20250514121446-f525e187efdc/go.mod h1:R0ritgYtjLDO9527h5vb5X6gfvt5LCrJ55BNbVDsWiY=
1723-
knative.dev/networking v0.0.0-20250515023348-eea9fd8d72f2 h1:ohEu0ii0tHMFESdUOF++47/stJ2gFfc8KPM3TavRfrI=
1724-
knative.dev/networking v0.0.0-20250515023348-eea9fd8d72f2/go.mod h1:2YJmcqu+PHpCGpxvu9jCkoepJaOg/SnNJZz/qBhn71A=
1725-
knative.dev/pkg v0.0.0-20250520014526-44579e9ce5ed h1:5ZYbJDnkQ/Q3oZsiwD0hnbmMwC6+2KvkIJNPH9IToUE=
1726-
knative.dev/pkg v0.0.0-20250520014526-44579e9ce5ed/go.mod h1:RgnJAMaNr/5xVZ9Kkd2BBkeNt1/TpDOo5fCSTqaVX8w=
1727-
knative.dev/reconciler-test v0.0.0-20250516121650-f46fa6544a97 h1:IcAtORqZ3ek+HN9799LRRiBijSgNCdtAvF1S7qzPvcM=
1728-
knative.dev/reconciler-test v0.0.0-20250516121650-f46fa6544a97/go.mod h1:CWM3ApZHYFCw2gQi1SDSVSoMNaGMm3M4JZidda6PhY0=
1729-
knative.dev/serving v0.45.1-0.20250529121820-92b23aa11d52 h1:BFGqIFAkAWzAorrEjdTiM+fLAMl7lmr97S/bflYz27g=
1730-
knative.dev/serving v0.45.1-0.20250529121820-92b23aa11d52/go.mod h1:qp7RLjdvL5SP593DZJCdgPDBsZEyhFQd9kL771hDDfs=
1723+
knative.dev/networking v0.0.0-20250602222425-e132e247fa39 h1:wVgAQb7ScYe+jmvZscU0AomHCeweaYB4bwTxUnbQ8qE=
1724+
knative.dev/networking v0.0.0-20250602222425-e132e247fa39/go.mod h1:JnMvVJHh999ob4zLB/CHxdA32/G88Cmz+y1pxTGwY3A=
1725+
knative.dev/pkg v0.0.0-20250602175424-3c3a920206ea h1:ukJPq9MzFTEH/Sei5MSVnSE8+7NSCKixCDZPd6p4ohw=
1726+
knative.dev/pkg v0.0.0-20250602175424-3c3a920206ea/go.mod h1:tFayQbi6t4+5HXuEGLOGvILW228Q7uaJp/FYEgbjJ3A=
1727+
knative.dev/reconciler-test v0.0.0-20250602074324-9a20896ca854 h1:lVLYcQMWGDzcY2jKJI4NwbCReADA/k9f3RQUBBxx/cc=
1728+
knative.dev/reconciler-test v0.0.0-20250602074324-9a20896ca854/go.mod h1:r6tSGY5T+AXRITlgAbyg2wM2LfCn/DgXX7tw24ku58k=
1729+
knative.dev/serving v0.45.1-0.20250605124427-cf4b1ae4810d h1:iQWlpi6dseUyy782x6yoAKwPgJCSIMIdJ4vu44nUHYc=
1730+
knative.dev/serving v0.45.1-0.20250605124427-cf4b1ae4810d/go.mod h1:s1uHTOOggJqyCo0DB3Unf462EG7803f9RM/v0Bszcwk=
17311731
nhooyr.io/websocket v1.8.6/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0=
17321732
pgregory.net/rapid v1.1.0 h1:CMa0sjHSru3puNx+J0MIAuiiEV4N0qj8/cMWGBBCsjw=
17331733
pgregory.net/rapid v1.1.0/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04=

vendor/google.golang.org/grpc/internal/resolver/delegatingresolver/delegatingresolver.go

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

vendor/google.golang.org/grpc/version.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/knative.dev/eventing/pkg/eventingtls/eventingtlstesting/eventingtlstesting.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func init() {
4747
CA, Key, Crt = loadCerts()
4848
}
4949

50-
func StartServer(ctx context.Context, t *testing.T, port int, handler http.Handler, receiverOptions ...kncloudevents.HTTPEventReceiverOption) string {
50+
func StartServer(ctx context.Context, t *testing.T, port int, handler http.Handler, receiverOptions ...kncloudevents.HTTPEventReceiverOption) (string, int) {
5151
secret := types.NamespacedName{
5252
Namespace: "knative-tests",
5353
Name: "tls-secret",
@@ -83,7 +83,7 @@ func StartServer(ctx context.Context, t *testing.T, port int, handler http.Handl
8383
}
8484
}()
8585

86-
return string(CA)
86+
return string(CA), receiver.GetPort()
8787
}
8888

8989
func loadCerts() ([]byte, []byte, []byte) {

vendor/knative.dev/eventing/pkg/kncloudevents/event_receiver.go

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import (
2222
"fmt"
2323
"net"
2424
"net/http"
25+
"strconv"
2526
"time"
2627

2728
"go.opencensus.io/plugin/ochttp"
@@ -34,7 +35,8 @@ const (
3435
)
3536

3637
type HTTPEventReceiver struct {
37-
port int
38+
desiredPort int
39+
port int
3840

3941
server *http.Server
4042
listener net.Listener
@@ -49,13 +51,14 @@ type HTTPEventReceiver struct {
4951
// HTTPEventReceiverOption enables further configuration of a HTTPEventReceiver.
5052
type HTTPEventReceiverOption func(*HTTPEventReceiver)
5153

52-
func NewHTTPEventReceiver(port int, o ...HTTPEventReceiverOption) *HTTPEventReceiver {
54+
// NewHTTPEventReceiver creates a new HTTPEventReceiver. When desiredPort is set to 0, a free port will be chosen.
55+
// The final port of the running server will be stored in receiver.Port.
56+
func NewHTTPEventReceiver(desiredPort int, o ...HTTPEventReceiverOption) *HTTPEventReceiver {
5357
h := &HTTPEventReceiver{
54-
port: port,
58+
desiredPort: desiredPort,
59+
Ready: make(chan interface{}),
5560
}
5661

57-
h.Ready = make(chan interface{})
58-
5962
for _, opt := range o {
6063
opt(h)
6164
}
@@ -122,10 +125,19 @@ func (recv *HTTPEventReceiver) GetAddr() string {
122125
return ""
123126
}
124127

128+
// GetPort returns the final assigned port of the server.
129+
// This is blocking, as we need to wait until the server is running.
130+
func (recv *HTTPEventReceiver) GetPort() int {
131+
// wait until server is ready, as only then the port is assigned
132+
<-recv.Ready
133+
134+
return recv.port
135+
}
136+
125137
// Blocking
126138
func (recv *HTTPEventReceiver) StartListen(ctx context.Context, handler http.Handler) error {
127139
var err error
128-
if recv.listener, err = net.Listen("tcp", fmt.Sprintf(":%d", recv.port)); err != nil {
140+
if recv.listener, err = net.Listen("tcp", fmt.Sprintf(":%d", recv.desiredPort)); err != nil {
129141
return err
130142
}
131143

@@ -140,6 +152,18 @@ func (recv *HTTPEventReceiver) StartListen(ctx context.Context, handler http.Han
140152
recv.server.Addr = recv.listener.Addr().String()
141153
recv.server.Handler = drainer
142154

155+
_, portStr, err := net.SplitHostPort(recv.server.Addr)
156+
if err != nil {
157+
return fmt.Errorf("could not get port of server: %w", err)
158+
}
159+
160+
port, err := strconv.Atoi(portStr)
161+
if err != nil {
162+
return fmt.Errorf("could not convert port to int: %w", err)
163+
}
164+
165+
recv.port = port
166+
143167
errChan := make(chan error, 1)
144168
go func() {
145169
close(recv.Ready)

vendor/modules.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ google.golang.org/genproto/googleapis/api/httpbody
725725
google.golang.org/genproto/googleapis/rpc/code
726726
google.golang.org/genproto/googleapis/rpc/errdetails
727727
google.golang.org/genproto/googleapis/rpc/status
728-
# google.golang.org/grpc v1.72.1
728+
# google.golang.org/grpc v1.72.2
729729
## explicit; go 1.23
730730
google.golang.org/grpc
731731
google.golang.org/grpc/attributes
@@ -1428,11 +1428,11 @@ k8s.io/utils/net
14281428
k8s.io/utils/pointer
14291429
k8s.io/utils/ptr
14301430
k8s.io/utils/trace
1431-
# knative.dev/caching v0.0.0-20250515023348-e27e90746aeb
1431+
# knative.dev/caching v0.0.0-20250603022924-4217d80f9aad
14321432
## explicit; go 1.23.0
14331433
knative.dev/caching/pkg/apis/caching
14341434
knative.dev/caching/pkg/apis/caching/v1alpha1
1435-
# knative.dev/eventing v0.45.1-0.20250526160117-40bac3cce0e6
1435+
# knative.dev/eventing v0.45.1-0.20250603123125-da948cba5099
14361436
## explicit; go 1.23.0
14371437
knative.dev/eventing/cmd/heartbeats
14381438
knative.dev/eventing/pkg/apis
@@ -1526,7 +1526,7 @@ knative.dev/eventing/test/upgrade/prober/wathola/sender
15261526
# knative.dev/hack v0.0.0-20250514121446-f525e187efdc
15271527
## explicit; go 1.21
15281528
knative.dev/hack
1529-
# knative.dev/networking v0.0.0-20250515023348-eea9fd8d72f2
1529+
# knative.dev/networking v0.0.0-20250602222425-e132e247fa39
15301530
## explicit; go 1.23.0
15311531
knative.dev/networking/pkg
15321532
knative.dev/networking/pkg/apis/networking
@@ -1543,7 +1543,7 @@ knative.dev/networking/pkg/http/proxy
15431543
knative.dev/networking/pkg/http/stats
15441544
knative.dev/networking/pkg/ingress
15451545
knative.dev/networking/pkg/k8s
1546-
# knative.dev/pkg v0.0.0-20250520014526-44579e9ce5ed
1546+
# knative.dev/pkg v0.0.0-20250602175424-3c3a920206ea
15471547
## explicit; go 1.23.0
15481548
knative.dev/pkg/apiextensions/storageversion
15491549
knative.dev/pkg/apiextensions/storageversion/cmd/migrate
@@ -1631,7 +1631,7 @@ knative.dev/pkg/webhook
16311631
knative.dev/pkg/webhook/certificates
16321632
knative.dev/pkg/webhook/certificates/resources
16331633
knative.dev/pkg/webhook/resourcesemantics/conversion
1634-
# knative.dev/reconciler-test v0.0.0-20250516121650-f46fa6544a97
1634+
# knative.dev/reconciler-test v0.0.0-20250602074324-9a20896ca854
16351635
## explicit; go 1.23.0
16361636
knative.dev/reconciler-test/cmd/eventshub
16371637
knative.dev/reconciler-test/pkg/environment
@@ -1660,7 +1660,7 @@ knative.dev/reconciler-test/pkg/resources/service
16601660
knative.dev/reconciler-test/pkg/resources/serviceaccount
16611661
knative.dev/reconciler-test/pkg/state
16621662
knative.dev/reconciler-test/resources/certificate
1663-
# knative.dev/serving v0.45.1-0.20250529121820-92b23aa11d52
1663+
# knative.dev/serving v0.45.1-0.20250605124427-cf4b1ae4810d
16641664
## explicit; go 1.24.0
16651665
knative.dev/serving/pkg/apis/autoscaling
16661666
knative.dev/serving/pkg/apis/autoscaling/v1alpha1

0 commit comments

Comments
 (0)