Skip to content

Commit 7dfa2f2

Browse files
upgrade to latest dependencies (#2309)
bumping knative.dev/pkg 18c5d58...c085a76: > c085a76 upgrade to latest dependencies (# 3365) > 011b23b Limit the webhook request body size to 3MiB (# 3364) > 9b08ba8 fix compilation (# 3361) > 39109c9 Fix memory leak in expired matchers (# 3359) Signed-off-by: Knative Automation <automation@knative.team>
1 parent a9d961c commit 7dfa2f2

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
@@ -23,7 +23,7 @@ require (
2323
knative.dev/caching v0.0.0-20260120130310-f1fc03b7f5ee
2424
knative.dev/eventing v0.48.2
2525
knative.dev/hack v0.0.0-20260420222011-c985ed3cefe8
26-
knative.dev/pkg v0.0.0-20260319144603-18c5d580ae64
26+
knative.dev/pkg v0.0.0-20260531000707-c085a76e54cc
2727
knative.dev/reconciler-test v0.0.0-20260424102515-75d476349613
2828
knative.dev/serving v0.48.2
2929
sigs.k8s.io/yaml v1.6.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1720,8 +1720,8 @@ knative.dev/hack v0.0.0-20260420222011-c985ed3cefe8 h1:IrUBuFRxzqUm+f//hY6XGPzXo
17201720
knative.dev/hack v0.0.0-20260420222011-c985ed3cefe8/go.mod h1:L5RzHgbvam0u8QFHfzCX6MKxu/a/gIGEdaRBqNiVbl0=
17211721
knative.dev/networking v0.0.0-20260120131110-a7cdca238a0d h1:QQ5QeH5MZlYdu6gRGGjmEBQ/CVoatiXKnVIrUoKlj4U=
17221722
knative.dev/networking v0.0.0-20260120131110-a7cdca238a0d/go.mod h1:mZD2edO8op3zI6yLOn1yoz8xqbyZfrrDOJCbYElMEKs=
1723-
knative.dev/pkg v0.0.0-20260319144603-18c5d580ae64 h1:TiwrcgUKNePfdAbaJT9W4P57lsKjiZnjJ0wVC6XrL0U=
1724-
knative.dev/pkg v0.0.0-20260319144603-18c5d580ae64/go.mod h1:Tz3GoxcNC5vH3Zo//cW3mnHL474u+Y1wbsUIZ11p8No=
1723+
knative.dev/pkg v0.0.0-20260531000707-c085a76e54cc h1:cwemQFdQtoXRgsb7mfuV0IB+CYVY2mXQhizqKXCbrr0=
1724+
knative.dev/pkg v0.0.0-20260531000707-c085a76e54cc/go.mod h1:MO0fpS2gSc+yVOKvJiaLYoXVC/ZrK0BT2qopLjXK5rE=
17251725
knative.dev/reconciler-test v0.0.0-20260424102515-75d476349613 h1:LB7Jowx8eVwJKlMmHn0FkIk8NyeFiC0b1q/yTAjThrE=
17261726
knative.dev/reconciler-test v0.0.0-20260424102515-75d476349613/go.mod h1:FUaadFiniAaqqBp/D2g2cO/FUABVR8W4yZd2azDzp7I=
17271727
knative.dev/serving v0.48.2 h1:CdPvTytMt1wGoKI9hsM5QU1bolUIwkhBGbGojx2l4f4=

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
@@ -394,5 +394,7 @@ func (wh *Webhook) ServeHTTP(w http.ResponseWriter, r *http.Request) {
394394
return
395395
}
396396

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

vendor/modules.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1616,7 +1616,7 @@ knative.dev/networking/pkg/client/clientset/versioned/typed/networking/v1alpha1
16161616
knative.dev/networking/pkg/config
16171617
knative.dev/networking/pkg/http/header
16181618
knative.dev/networking/pkg/ingress
1619-
# knative.dev/pkg v0.0.0-20260319144603-18c5d580ae64
1619+
# knative.dev/pkg v0.0.0-20260531000707-c085a76e54cc
16201620
## explicit; go 1.24.0
16211621
knative.dev/pkg/apiextensions/storageversion
16221622
knative.dev/pkg/apiextensions/storageversion/cmd/migrate

0 commit comments

Comments
 (0)