Skip to content

Commit 56f9988

Browse files
upgrade to latest dependencies (#4530)
bumping knative.dev/eventing 1c920ca...903c74c: > 903c74c [main] Format Go code (# 8730) > 349e882 fix: add symlinks to request reply config (# 8729) > 0470b9a [Automated] Update eventing-eventing-integrations nightly (# 8728) > d4a30b2 feat: add RequestReply control plane (# 8701) > 600b194 [Automated] Update eventing-eventing-integrations nightly (# 8726) > 24dcebf [main] Upgrade to latest dependencies (# 8725) bumping knative.dev/reconciler-test 73218b8...da69721: > da69721 upgrade to latest dependencies (# 824) Signed-off-by: Knative Automation <automation@knative.team>
1 parent cfbb569 commit 56f9988

7 files changed

Lines changed: 228 additions & 8 deletions

File tree

‎go.mod‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ require (
3434
k8s.io/client-go v0.33.4
3535
k8s.io/code-generator v0.33.4
3636
k8s.io/utils v0.0.0-20241210054802-24370beab758
37-
knative.dev/eventing v0.46.1-0.20250911120720-1c920ca1452d
37+
knative.dev/eventing v0.46.1-0.20250917152302-903c74c03172
3838
knative.dev/hack v0.0.0-20250902153942-1499de21e119
3939
knative.dev/pkg v0.0.0-20250915135827-db4c336acdbe
40-
knative.dev/reconciler-test v0.0.0-20250909113732-73218b8f3940
40+
knative.dev/reconciler-test v0.0.0-20250916021502-da6972135171
4141
sigs.k8s.io/controller-runtime v0.19.0
4242
sigs.k8s.io/randfill v1.0.0
4343
sigs.k8s.io/yaml v1.6.0

‎go.sum‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1548,14 +1548,14 @@ k8s.io/utils v0.0.0-20210819203725-bdf08cb9a70a/go.mod h1:jPW/WVKK9YHAvNhRxK0md/
15481548
k8s.io/utils v0.0.0-20230209194617-a36077c30491/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
15491549
k8s.io/utils v0.0.0-20241210054802-24370beab758 h1:sdbE21q2nlQtFh65saZY+rRM6x6aJJI8IUa1AmH/qa0=
15501550
k8s.io/utils v0.0.0-20241210054802-24370beab758/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
1551-
knative.dev/eventing v0.46.1-0.20250911120720-1c920ca1452d h1:h36oypKEueHGlQVvRDUKQZ+ZjmvVwP4eQ79I8rBNqa4=
1552-
knative.dev/eventing v0.46.1-0.20250911120720-1c920ca1452d/go.mod h1:NP1ypjTAP+eZTT1P/Xk8DAI+dkqkWatFP73IikS4BIo=
1551+
knative.dev/eventing v0.46.1-0.20250917152302-903c74c03172 h1:B9JnfTRQyF7/ReuiRNuR1KOEWJDuAvDu9dpZzg/ZLnE=
1552+
knative.dev/eventing v0.46.1-0.20250917152302-903c74c03172/go.mod h1:HRusNPXiJsv2USQLE9i0gPm/cnUZo0jVTlkVdBTcfC8=
15531553
knative.dev/hack v0.0.0-20250902153942-1499de21e119 h1:NbQvjnFK1tL489LN0qAybWy0E17Jpziwcv/XIHwfp6M=
15541554
knative.dev/hack v0.0.0-20250902153942-1499de21e119/go.mod h1:R0ritgYtjLDO9527h5vb5X6gfvt5LCrJ55BNbVDsWiY=
15551555
knative.dev/pkg v0.0.0-20250915135827-db4c336acdbe h1:VCVC/izQ5iIRWti36s1zTuRJPcnK3fSVpnB3Li4b24Y=
15561556
knative.dev/pkg v0.0.0-20250915135827-db4c336acdbe/go.mod h1:MWTdkANYm1VBSd7O33Q8Uwr9nDsrBehnVNDVPbshy7s=
1557-
knative.dev/reconciler-test v0.0.0-20250909113732-73218b8f3940 h1:iqaxc4FelXHVrUD6Jq/N2tr9DM4YNIlAZuU8eoUgU/k=
1558-
knative.dev/reconciler-test v0.0.0-20250909113732-73218b8f3940/go.mod h1:1pexOYpq548o8aD564cgDpXoumingywDV3tZ5L7m9nI=
1557+
knative.dev/reconciler-test v0.0.0-20250916021502-da6972135171 h1:MCIlKRsXdPDXPoVpJc4XQOeD5Gi8hM4/9bsHJrGfJLY=
1558+
knative.dev/reconciler-test v0.0.0-20250916021502-da6972135171/go.mod h1:xPVpncu/AzIHKeE7jj0+MvfpykT3du2sOj7IqRhDzig=
15591559
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
15601560
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
15611561
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=

‎vendor/knative.dev/eventing/pkg/reconciler/testing/v1/listers.go‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@ func (l *Listers) GetEventTransformLister() eventingv1alpha1listers.EventTransfo
143143
return eventingv1alpha1listers.NewEventTransformLister(l.indexerFor(&eventingv1alpha1.EventTransform{}))
144144
}
145145

146+
func (l *Listers) GetRequestReplyLister() eventingv1alpha1listers.RequestReplyLister {
147+
return eventingv1alpha1listers.NewRequestReplyLister(l.indexerFor(&eventingv1alpha1.RequestReply{}))
148+
}
149+
146150
func (l *Listers) GetIntegrationSourceLister() sourcev1alpha1listers.IntegrationSourceLister {
147151
return sourcev1alpha1listers.NewIntegrationSourceLister(l.indexerFor(&sourcesv1alpha1.IntegrationSource{}))
148152
}
@@ -200,6 +204,10 @@ func (l *Listers) GetDeploymentLister() appsv1listers.DeploymentLister {
200204
return appsv1listers.NewDeploymentLister(l.indexerFor(&appsv1.Deployment{}))
201205
}
202206

207+
func (l *Listers) GetStatefulSetLister() appsv1listers.StatefulSetLister {
208+
return appsv1listers.NewStatefulSetLister(l.indexerFor(&appsv1.StatefulSet{}))
209+
}
210+
203211
func (l *Listers) GetK8sServiceLister() corev1listers.ServiceLister {
204212
return corev1listers.NewServiceLister(l.indexerFor(&corev1.Service{}))
205213
}
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
/*
2+
Copyright 2025 The Knative Authors
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
package testing
18+
19+
import (
20+
corev1 "k8s.io/api/core/v1"
21+
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
22+
)
23+
24+
// PodOption enables further configuration of a Pod.
25+
type PodOption func(*corev1.Pod)
26+
27+
// NewPod creates a Pod with PodOptions.
28+
func NewPod(name, namespace string, po ...PodOption) *corev1.Pod {
29+
p := &corev1.Pod{
30+
ObjectMeta: metav1.ObjectMeta{
31+
Namespace: namespace,
32+
Name: name,
33+
},
34+
Spec: corev1.PodSpec{
35+
Containers: []corev1.Container{
36+
{
37+
Name: "container",
38+
Image: "test-image",
39+
},
40+
},
41+
},
42+
}
43+
for _, opt := range po {
44+
opt(p)
45+
}
46+
return p
47+
}
48+
49+
func WithPodLabels(labels map[string]string) PodOption {
50+
return func(p *corev1.Pod) {
51+
p.ObjectMeta.Labels = labels
52+
}
53+
}
54+
55+
func WithPodOwnerReferences(ownerReferences []metav1.OwnerReference) PodOption {
56+
return func(p *corev1.Pod) {
57+
p.OwnerReferences = ownerReferences
58+
}
59+
}
60+
61+
func WithPodAnnotations(annotations map[string]string) PodOption {
62+
return func(p *corev1.Pod) {
63+
p.ObjectMeta.Annotations = annotations
64+
}
65+
}
66+
67+
func WithPodIP(ip string) PodOption {
68+
return func(p *corev1.Pod) {
69+
p.Status.PodIP = ip
70+
}
71+
}
72+
73+
func WithPodReady() PodOption {
74+
return func(p *corev1.Pod) {
75+
p.Status.Phase = corev1.PodRunning
76+
p.Status.Conditions = []corev1.PodCondition{
77+
{
78+
Type: corev1.PodReady,
79+
Status: corev1.ConditionTrue,
80+
},
81+
}
82+
}
83+
}
84+
85+
func WithPodContainer(name, image string) PodOption {
86+
return func(p *corev1.Pod) {
87+
if len(p.Spec.Containers) == 0 {
88+
p.Spec.Containers = []corev1.Container{{}}
89+
}
90+
p.Spec.Containers[0].Name = name
91+
p.Spec.Containers[0].Image = image
92+
}
93+
}
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
/*
2+
Copyright 2019 The Knative Authors
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
package testing
18+
19+
import (
20+
appsv1 "k8s.io/api/apps/v1"
21+
corev1 "k8s.io/api/core/v1"
22+
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
23+
)
24+
25+
// StatefulSetOption enables further configuration of a StatefulSet.
26+
type StatefulSetOption func(*appsv1.StatefulSet)
27+
28+
// NewStatefulSet creates a StatefulSet with StatefulSetOptions.
29+
func NewStatefulSet(name, namespace string, so ...StatefulSetOption) *appsv1.StatefulSet {
30+
s := &appsv1.StatefulSet{
31+
ObjectMeta: metav1.ObjectMeta{
32+
Namespace: namespace,
33+
Name: name,
34+
},
35+
Spec: appsv1.StatefulSetSpec{
36+
Template: corev1.PodTemplateSpec{
37+
Spec: corev1.PodSpec{
38+
Containers: []corev1.Container{{}},
39+
},
40+
},
41+
},
42+
}
43+
for _, opt := range so {
44+
opt(s)
45+
}
46+
return s
47+
}
48+
49+
func WithStatefulSetLabels(labels map[string]string) StatefulSetOption {
50+
return func(s *appsv1.StatefulSet) {
51+
s.ObjectMeta.Labels = labels
52+
s.Spec.Selector = &metav1.LabelSelector{
53+
MatchLabels: labels,
54+
}
55+
s.Spec.Template.Labels = labels
56+
}
57+
}
58+
59+
func WithStatefulSetOwnerReferences(ownerReferences []metav1.OwnerReference) StatefulSetOption {
60+
return func(s *appsv1.StatefulSet) {
61+
s.OwnerReferences = ownerReferences
62+
}
63+
}
64+
65+
func WithStatefulSetAnnotations(annotations map[string]string) StatefulSetOption {
66+
return func(s *appsv1.StatefulSet) {
67+
s.Spec.Template.Annotations = annotations
68+
}
69+
}
70+
71+
func WithStatefulSetServiceAccount(serviceAccountName string) StatefulSetOption {
72+
return func(s *appsv1.StatefulSet) {
73+
s.Spec.Template.Spec.ServiceAccountName = serviceAccountName
74+
}
75+
}
76+
77+
func WithStatefulSetContainer(name, image string, liveness *corev1.Probe, readiness *corev1.Probe, envVars []corev1.EnvVar, containerPorts []corev1.ContainerPort) StatefulSetOption {
78+
return func(s *appsv1.StatefulSet) {
79+
s.Spec.Template.Spec.Containers[0].Name = name
80+
s.Spec.Template.Spec.Containers[0].Image = image
81+
s.Spec.Template.Spec.Containers[0].LivenessProbe = liveness
82+
s.Spec.Template.Spec.Containers[0].ReadinessProbe = readiness
83+
s.Spec.Template.Spec.Containers[0].Env = envVars
84+
s.Spec.Template.Spec.Containers[0].Ports = containerPorts
85+
}
86+
}
87+
88+
// WithStatefulSetReady marks the StatefulSet as ready.
89+
func WithStatefulSetReady() StatefulSetOption {
90+
return func(s *appsv1.StatefulSet) {
91+
s.Status.ReadyReplicas = 1
92+
s.Status.Replicas = 1
93+
}
94+
}
95+
96+
func WithStatefulSetReplicas(replicas int32) StatefulSetOption {
97+
return func(s *appsv1.StatefulSet) {
98+
s.Spec.Replicas = &replicas
99+
s.Status.Replicas = replicas
100+
s.Status.ReadyReplicas = replicas
101+
}
102+
}

‎vendor/knative.dev/eventing/pkg/reconciler/testing/v1/trigger.go‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ package testing
1919
import (
2020
"context"
2121
"fmt"
22+
"maps"
2223
"time"
2324

2425
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
@@ -71,6 +72,12 @@ func NewTriggerWithBrokerRef(name, namespace string, to ...TriggerOption) *v1.Tr
7172
return t
7273
}
7374

75+
func WithTriggerFilters(filters []v1.SubscriptionsAPIFilter) TriggerOption {
76+
return func(t *v1.Trigger) {
77+
t.Spec.Filters = filters
78+
}
79+
}
80+
7481
func WithTriggerSubscriberURI(rawurl string) TriggerOption {
7582
uri, _ := apis.ParseURL(rawurl)
7683
return func(t *v1.Trigger) {
@@ -252,6 +259,16 @@ func WithLabel(key, value string) TriggerOption {
252259
}
253260
}
254261

262+
func WithLabels(labels map[string]string) TriggerOption {
263+
return func(t *v1.Trigger) {
264+
if t.Labels == nil {
265+
t.Labels = labels
266+
} else {
267+
maps.Copy(t.Labels, labels)
268+
}
269+
}
270+
}
271+
255272
func WithAnnotation(key, value string) TriggerOption {
256273
return func(t *v1.Trigger) {
257274
if t.Annotations == nil {

‎vendor/modules.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1290,7 +1290,7 @@ k8s.io/utils/net
12901290
k8s.io/utils/pointer
12911291
k8s.io/utils/ptr
12921292
k8s.io/utils/trace
1293-
# knative.dev/eventing v0.46.1-0.20250911120720-1c920ca1452d
1293+
# knative.dev/eventing v0.46.1-0.20250917152302-903c74c03172
12941294
## explicit; go 1.24.0
12951295
knative.dev/eventing/cmd/event_display
12961296
knative.dev/eventing/cmd/heartbeats
@@ -1607,7 +1607,7 @@ knative.dev/pkg/webhook/resourcesemantics
16071607
knative.dev/pkg/webhook/resourcesemantics/conversion
16081608
knative.dev/pkg/webhook/resourcesemantics/defaulting
16091609
knative.dev/pkg/webhook/resourcesemantics/validation
1610-
# knative.dev/reconciler-test v0.0.0-20250909113732-73218b8f3940
1610+
# knative.dev/reconciler-test v0.0.0-20250916021502-da6972135171
16111611
## explicit; go 1.24.0
16121612
knative.dev/reconciler-test/cmd/eventshub
16131613
knative.dev/reconciler-test/pkg/environment

0 commit comments

Comments
 (0)