Skip to content

Commit 48fc4b5

Browse files
upgrade to latest dependencies (#2308)
bumping knative.dev/pkg ec45287...52dbd5e: > 52dbd5e Limit the webhook request body size to 3MiB (# 3363) > 2279959 Fix memory leak in expired matchers (# 3360) Signed-off-by: Knative Automation <automation@knative.team>
1 parent 308a9d0 commit 48fc4b5

5 files changed

Lines changed: 10 additions & 8 deletions

File tree

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ require (
2525
knative.dev/caching v0.0.0-20260422140616-453ad996bbe2
2626
knative.dev/eventing v0.49.0
2727
knative.dev/hack v0.0.0-20260421155212-aeb7b4a9bf96
28-
knative.dev/pkg v0.0.0-20260422015212-ec452872dcc1
28+
knative.dev/pkg v0.0.0-20260531000007-52dbd5ece63f
2929
knative.dev/reconciler-test v0.0.0-20260424102515-e1c3185a30af
3030
knative.dev/serving v0.49.0
3131
sigs.k8s.io/cluster-inventory-api v0.1.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1818,8 +1818,8 @@ knative.dev/hack v0.0.0-20260421155212-aeb7b4a9bf96 h1:YrpWTCDRzoGz0Fe7AcLTsBY+D
18181818
knative.dev/hack v0.0.0-20260421155212-aeb7b4a9bf96/go.mod h1:L5RzHgbvam0u8QFHfzCX6MKxu/a/gIGEdaRBqNiVbl0=
18191819
knative.dev/networking v0.0.0-20260422140718-e9578ef11562 h1:3roePSDRNthOFDxwTISYPt2IYEXXVramzpHnH0NMGYs=
18201820
knative.dev/networking v0.0.0-20260422140718-e9578ef11562/go.mod h1:aQO2gITPzLwMPCV9S57rHrb1Zt2mUAYSGLbb/7nqzW0=
1821-
knative.dev/pkg v0.0.0-20260422015212-ec452872dcc1 h1:bO5X2bugzMqoVltm2n16mHpAdpSR0HRWeAKzHUL2Cgk=
1822-
knative.dev/pkg v0.0.0-20260422015212-ec452872dcc1/go.mod h1:EZeB2nBW4QcpZuCPB5a/UnoVIH2N+5z5fwNw1PUeqMg=
1821+
knative.dev/pkg v0.0.0-20260531000007-52dbd5ece63f h1:HLMi3cN9wbV9hdbu4fX6lX/VciVkAr3XLu8BL10K1E0=
1822+
knative.dev/pkg v0.0.0-20260531000007-52dbd5ece63f/go.mod h1:EZeB2nBW4QcpZuCPB5a/UnoVIH2N+5z5fwNw1PUeqMg=
18231823
knative.dev/reconciler-test v0.0.0-20260424102515-e1c3185a30af h1:DR4ZkCxbspf65OZ1a4t/Y1+qW3ITIUTkP5IyFAkiG7w=
18241824
knative.dev/reconciler-test v0.0.0-20260424102515-e1c3185a30af/go.mod h1:96PDjAjfSmnUSvDi4obIlI3CI0v+hQOWlCxQnGogO8g=
18251825
knative.dev/serving v0.49.0 h1:5B1JsytwZ+5bh9vOCNnu4GQJ/m6oj61Z/rVKziAY6MA=

vendor/knative.dev/pkg/tracker/enqueue.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@ func (i *impl) GetObservers(obj interface{}) []types.NamespacedName {
277277
keys = append(keys, key)
278278
}
279279
}
280-
if len(s) == 0 {
281-
delete(i.exact, ref)
280+
if len(ms) == 0 {
281+
delete(i.inexact, ref)
282282
}
283283
}
284284

@@ -309,7 +309,7 @@ func (i *impl) OnDeletedObserver(obj interface{}) {
309309
for ref, matchers := range i.inexact {
310310
delete(matchers, key)
311311
if len(matchers) == 0 {
312-
delete(i.exact, ref)
312+
delete(i.inexact, ref)
313313
}
314314
}
315315
}

vendor/knative.dev/pkg/webhook/webhook.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,9 @@ func (wh *Webhook) ServeHTTP(w http.ResponseWriter, r *http.Request) {
395395
return
396396
}
397397

398-
wh.mux.ServeHTTP(w, r)
398+
const MaxBodySize = 3 * 1024 * 1024 // 3 MiB
399+
h := http.MaxBytesHandler(&wh.mux, MaxBodySize)
400+
h.ServeHTTP(w, r)
399401
}
400402

401403
type routeLabeler struct {

vendor/modules.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1775,7 +1775,7 @@ knative.dev/networking/pkg/client/clientset/versioned/typed/networking/v1alpha1
17751775
knative.dev/networking/pkg/config
17761776
knative.dev/networking/pkg/http/header
17771777
knative.dev/networking/pkg/ingress
1778-
# knative.dev/pkg v0.0.0-20260422015212-ec452872dcc1
1778+
# knative.dev/pkg v0.0.0-20260531000007-52dbd5ece63f
17791779
## explicit; go 1.25.0
17801780
knative.dev/pkg/apiextensions/storageversion
17811781
knative.dev/pkg/apiextensions/storageversion/cmd/migrate

0 commit comments

Comments
 (0)