From 3627d3ae7ba1c4d21d3b42bc24653a9ab2eb4765 Mon Sep 17 00:00:00 2001 From: Knative Automation Date: Wed, 21 Feb 2024 21:17:50 -0500 Subject: [PATCH] upgrade to latest dependencies (#1214) bumping knative.dev/networking f5845ef...71d6811: > 71d6811 drop net-http01 from downstream testing (# 930) > 8bbc041 upgrade to latest dependencies (# 929) bumping knative.dev/pkg 9f033a7...bea8825: > bea8825 drop eventing-rabbitmq downstream testing (# 2969) > 695c421 drop http01 from downstream testing (# 2968) > 73aebb0 upgrade to latest dependencies (# 2967) Signed-off-by: Knative Automation --- go.mod | 4 ++-- go.sum | 8 ++++---- .../pkg/client/informers/externalversions/factory.go | 10 ++++++++++ vendor/modules.txt | 6 +++--- 4 files changed, 19 insertions(+), 9 deletions(-) diff --git a/go.mod b/go.mod index 734c6e9a7..37b0ce981 100644 --- a/go.mod +++ b/go.mod @@ -22,8 +22,8 @@ require ( k8s.io/client-go v0.29.2 k8s.io/code-generator v0.29.2 knative.dev/hack v0.0.0-20240221160411-fe1f2b48a69a - knative.dev/networking v0.0.0-20240221013756-f5845efc6d21 - knative.dev/pkg v0.0.0-20240221065059-9f033a7b77f7 + knative.dev/networking v0.0.0-20240221175059-71d6811127ef + knative.dev/pkg v0.0.0-20240221180044-bea88256cb23 ) require ( diff --git a/go.sum b/go.sum index 84401c441..13da1c3bb 100644 --- a/go.sum +++ b/go.sum @@ -720,10 +720,10 @@ k8s.io/utils v0.0.0-20240102154912-e7106e64919e h1:eQ/4ljkx21sObifjzXwlPKpdGLrCf k8s.io/utils v0.0.0-20240102154912-e7106e64919e/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= knative.dev/hack v0.0.0-20240221160411-fe1f2b48a69a h1:ihHLVHm38G0Va1Y7onh8e9QRZc7lU5guLRa+cQsUZdE= knative.dev/hack v0.0.0-20240221160411-fe1f2b48a69a/go.mod h1:yk2OjGDsbEnQjfxdm0/HJKS2WqTLEFg/N6nUs6Rqx3Q= -knative.dev/networking v0.0.0-20240221013756-f5845efc6d21 h1:bpidmIiie4cs3l0I/BIvRz2R7U0MFLimlWp3wn3aQis= -knative.dev/networking v0.0.0-20240221013756-f5845efc6d21/go.mod h1:0YAh9IQGmZ+ZTu4hJhuxi/W/Oord8lSP8EoUUEi/dKU= -knative.dev/pkg v0.0.0-20240221065059-9f033a7b77f7 h1:OccHMomHYUHgNbpR6LCPC8oju6akEJCI0tymRdSMZus= -knative.dev/pkg v0.0.0-20240221065059-9f033a7b77f7/go.mod h1:j4b62+hzLiXJ1NVavG5fjfvRk8CCNHFAdxLjeiAZPHI= +knative.dev/networking v0.0.0-20240221175059-71d6811127ef h1:j6tInytYM4U1zatfKPkVL65Q1v25bhH49eJUitkUVK8= +knative.dev/networking v0.0.0-20240221175059-71d6811127ef/go.mod h1:sbtKgD44Uca6YPQOf/KwCrdqpfCT1iRUHn4VbdN/O3c= +knative.dev/pkg v0.0.0-20240221180044-bea88256cb23 h1:99s9Jml2MAng8Q0X7TiDLpVEJgvpoIpr2pf43TL1yOQ= +knative.dev/pkg v0.0.0-20240221180044-bea88256cb23/go.mod h1:ShEiTxuj4Dxg5pz7A0eNRdiyurQHImirTUP9trki6Xo= rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= diff --git a/vendor/knative.dev/networking/pkg/client/informers/externalversions/factory.go b/vendor/knative.dev/networking/pkg/client/informers/externalversions/factory.go index 679810c32..72496e983 100644 --- a/vendor/knative.dev/networking/pkg/client/informers/externalversions/factory.go +++ b/vendor/knative.dev/networking/pkg/client/informers/externalversions/factory.go @@ -42,6 +42,7 @@ type sharedInformerFactory struct { lock sync.Mutex defaultResync time.Duration customResync map[reflect.Type]time.Duration + transform cache.TransformFunc informers map[reflect.Type]cache.SharedIndexInformer // startedInformers is used for tracking which informers have been started. @@ -80,6 +81,14 @@ func WithNamespace(namespace string) SharedInformerOption { } } +// WithTransform sets a transform on all informers. +func WithTransform(transform cache.TransformFunc) SharedInformerOption { + return func(factory *sharedInformerFactory) *sharedInformerFactory { + factory.transform = transform + return factory + } +} + // NewSharedInformerFactory constructs a new instance of sharedInformerFactory for all namespaces. func NewSharedInformerFactory(client versioned.Interface, defaultResync time.Duration) SharedInformerFactory { return NewSharedInformerFactoryWithOptions(client, defaultResync) @@ -184,6 +193,7 @@ func (f *sharedInformerFactory) InformerFor(obj runtime.Object, newFunc internal } informer = newFunc(f.client, resyncPeriod) + informer.SetTransform(f.transform) f.informers[informerType] = informer return informer diff --git a/vendor/modules.txt b/vendor/modules.txt index de9615ada..326873530 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1013,8 +1013,8 @@ k8s.io/utils/trace # knative.dev/hack v0.0.0-20240221160411-fe1f2b48a69a ## explicit; go 1.18 knative.dev/hack -# knative.dev/networking v0.0.0-20240221013756-f5845efc6d21 -## explicit; go 1.18 +# knative.dev/networking v0.0.0-20240221175059-71d6811127ef +## explicit; go 1.21 knative.dev/networking/config knative.dev/networking/pkg knative.dev/networking/pkg/apis/networking @@ -1054,7 +1054,7 @@ knative.dev/networking/test/test_images/runtime/handlers knative.dev/networking/test/test_images/timeout knative.dev/networking/test/test_images/wsserver knative.dev/networking/test/types -# knative.dev/pkg v0.0.0-20240221065059-9f033a7b77f7 +# knative.dev/pkg v0.0.0-20240221180044-bea88256cb23 ## explicit; go 1.21 knative.dev/pkg/apis knative.dev/pkg/apis/duck