From c6f67cbc0b34e7cb1a616c606f5771af97eb45e0 Mon Sep 17 00:00:00 2001 From: Knative Automation Date: Thu, 8 Aug 2024 01:39:04 +0000 Subject: [PATCH] upgrade to latest dependencies bumping knative.dev/eventing ff37e4e...7237233: > 7237233 Default EventPolicy `.spec.from[].namespace` to EventPolicies namespace (# 8133) > 32f8491 update trust-manager to version 0.12.0 (# 8130) bumping knative.dev/serving 73f88b2...110b430: > 110b430 Update net-contour nightly (# 15452) > c6665f1 Update net-kourier nightly (# 15451) > ab0cd0a Update net-gateway-api nightly (# 15448) bumping knative.dev/caching 0a5c1ed...a1182ac: > a1182ac upgrade to latest dependencies (# 885) Signed-off-by: Knative Automation --- go.mod | 6 +++--- go.sum | 12 ++++++------ .../apis/eventing/v1alpha1/eventpolicy_defaults.go | 10 ++++++++++ vendor/modules.txt | 6 +++--- 4 files changed, 22 insertions(+), 12 deletions(-) diff --git a/go.mod b/go.mod index ba7af8d3d1..4151511c15 100644 --- a/go.mod +++ b/go.mod @@ -20,11 +20,11 @@ require ( k8s.io/apimachinery v0.29.2 k8s.io/client-go v0.29.2 k8s.io/code-generator v0.29.2 - knative.dev/caching v0.0.0-20240805055809-0a5c1ed07f7a - knative.dev/eventing v0.42.1-0.20240801183138-ff37e4e2fc0f + knative.dev/caching v0.0.0-20240807073116-a1182ac1e36f + knative.dev/eventing v0.42.1-0.20240807141830-7237233ad4cc knative.dev/hack v0.0.0-20240801232131-441a19fc9ead knative.dev/pkg v0.0.0-20240805063731-c88d5dad9653 - knative.dev/serving v0.42.1-0.20240806121737-73f88b255f5f + knative.dev/serving v0.42.1-0.20240807134302-110b43087fed sigs.k8s.io/yaml v1.4.0 ) diff --git a/go.sum b/go.sum index 8df65e9eb2..0803d0cedc 100644 --- a/go.sum +++ b/go.sum @@ -1359,18 +1359,18 @@ k8s.io/utils v0.0.0-20200912215256-4140de9c8800/go.mod h1:jPW/WVKK9YHAvNhRxK0md/ k8s.io/utils v0.0.0-20210819203725-bdf08cb9a70a/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= k8s.io/utils v0.0.0-20240102154912-e7106e64919e h1:eQ/4ljkx21sObifjzXwlPKpdGLrCfRziVtos3ofG/sQ= k8s.io/utils v0.0.0-20240102154912-e7106e64919e/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= -knative.dev/caching v0.0.0-20240805055809-0a5c1ed07f7a h1:7DgOkQg8N8ZZ3JFX8ARm2x3I8a4krDRm8X7SN/XhpzM= -knative.dev/caching v0.0.0-20240805055809-0a5c1ed07f7a/go.mod h1:c3GhX20uCX8gscaPHnhicuvFU67TNwWzo+tFOrhXZiQ= -knative.dev/eventing v0.42.1-0.20240801183138-ff37e4e2fc0f h1:nxcX0qPKzBc/n+gFEhT2sWTnT5xbRdx1QH8TPsXMxqM= -knative.dev/eventing v0.42.1-0.20240801183138-ff37e4e2fc0f/go.mod h1:sW8btFd57JF2hS2T92Jh/k1PgSOVTQdPzZODXaQs54E= +knative.dev/caching v0.0.0-20240807073116-a1182ac1e36f h1:Uqm1RPsmEnMehzk921b6EpgbqRkjH23kWuZNzAtO64o= +knative.dev/caching v0.0.0-20240807073116-a1182ac1e36f/go.mod h1:k/kkD/B2r+6JmMozhpr/gsTdNUEXPkDMLhBUdek8a9A= +knative.dev/eventing v0.42.1-0.20240807141830-7237233ad4cc h1:3TVm0mNR/am9S7bVW0pnk/E4mT/pQHwY8KOYnJNbLI8= +knative.dev/eventing v0.42.1-0.20240807141830-7237233ad4cc/go.mod h1:sW8btFd57JF2hS2T92Jh/k1PgSOVTQdPzZODXaQs54E= knative.dev/hack v0.0.0-20240801232131-441a19fc9ead h1:ViH1OEO0LViKa6W61YKUpLzOp7CJCFL9yLyIojHIuQ8= knative.dev/hack v0.0.0-20240801232131-441a19fc9ead/go.mod h1:R0ritgYtjLDO9527h5vb5X6gfvt5LCrJ55BNbVDsWiY= knative.dev/networking v0.0.0-20240802083044-f1702380495f h1:1mIVNRZELhQLuDDFti6R26ZQXqeL2UkS/K0cMqKzBxw= knative.dev/networking v0.0.0-20240802083044-f1702380495f/go.mod h1:FNWuEcSif270xzNwQx5xFvEsv7wKiKGPUKzpAXkajT8= knative.dev/pkg v0.0.0-20240805063731-c88d5dad9653 h1:VHUW124ZpkDn4EnIzMuGWvGuJte3ISIoHMmEw2kx0zU= knative.dev/pkg v0.0.0-20240805063731-c88d5dad9653/go.mod h1:H+5rS2GEWpAZzrmQoXOEVq/1M77LLMhR7+4jZBMOQ24= -knative.dev/serving v0.42.1-0.20240806121737-73f88b255f5f h1:yBlSzaLPKHuP0q/uhdrCPr7S99ZjrrqRpbnOrA6+3r0= -knative.dev/serving v0.42.1-0.20240806121737-73f88b255f5f/go.mod h1:gHq0Gm9DC2Kx4HwXFZKH4IcC9sXgoVln9AP93OYFujQ= +knative.dev/serving v0.42.1-0.20240807134302-110b43087fed h1:MjIfWxEoR2a+MtxV2RW6E1Ads8gdQquTqWzMC9v5Kow= +knative.dev/serving v0.42.1-0.20240807134302-110b43087fed/go.mod h1:gHq0Gm9DC2Kx4HwXFZKH4IcC9sXgoVln9AP93OYFujQ= nhooyr.io/websocket v1.8.6/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0= pgregory.net/rapid v1.1.0 h1:CMa0sjHSru3puNx+J0MIAuiiEV4N0qj8/cMWGBBCsjw= pgregory.net/rapid v1.1.0/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= diff --git a/vendor/knative.dev/eventing/pkg/apis/eventing/v1alpha1/eventpolicy_defaults.go b/vendor/knative.dev/eventing/pkg/apis/eventing/v1alpha1/eventpolicy_defaults.go index 3e52f5bd48..4514e4c033 100644 --- a/vendor/knative.dev/eventing/pkg/apis/eventing/v1alpha1/eventpolicy_defaults.go +++ b/vendor/knative.dev/eventing/pkg/apis/eventing/v1alpha1/eventpolicy_defaults.go @@ -28,4 +28,14 @@ func (ep *EventPolicy) SetDefaults(ctx context.Context) { } func (ets *EventPolicySpec) SetDefaults(ctx context.Context) { + for i := range ets.From { + ets.From[i].SetDefaults(ctx) + } +} + +func (from *EventPolicySpecFrom) SetDefaults(ctx context.Context) { + if from.Ref != nil && from.Ref.Namespace == "" { + // default to event policies namespace + from.Ref.Namespace = apis.ParentMeta(ctx).Namespace + } } diff --git a/vendor/modules.txt b/vendor/modules.txt index e5a0e96f01..09a2635a30 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1318,11 +1318,11 @@ k8s.io/utils/pointer k8s.io/utils/ptr k8s.io/utils/strings/slices k8s.io/utils/trace -# knative.dev/caching v0.0.0-20240805055809-0a5c1ed07f7a +# knative.dev/caching v0.0.0-20240807073116-a1182ac1e36f ## explicit; go 1.22 knative.dev/caching/pkg/apis/caching knative.dev/caching/pkg/apis/caching/v1alpha1 -# knative.dev/eventing v0.42.1-0.20240801183138-ff37e4e2fc0f +# knative.dev/eventing v0.42.1-0.20240807141830-7237233ad4cc ## explicit; go 1.22 knative.dev/eventing/pkg/apis/config knative.dev/eventing/pkg/apis/duck @@ -1532,7 +1532,7 @@ knative.dev/pkg/webhook knative.dev/pkg/webhook/certificates knative.dev/pkg/webhook/certificates/resources knative.dev/pkg/webhook/resourcesemantics/conversion -# knative.dev/serving v0.42.1-0.20240806121737-73f88b255f5f +# knative.dev/serving v0.42.1-0.20240807134302-110b43087fed ## explicit; go 1.22 knative.dev/serving/pkg/apis/autoscaling knative.dev/serving/pkg/apis/autoscaling/v1alpha1