diff --git a/go.mod b/go.mod index bb453bd3..0213ab72 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ require ( k8s.io/api v0.35.2 k8s.io/apimachinery v0.35.2 k8s.io/client-go v0.35.2 - knative.dev/client/pkg v0.0.0-20260310025245-435d663058cc + knative.dev/client/pkg v0.0.0-20260310143814-8342632107e5 knative.dev/eventing-kafka-broker v0.48.1-0.20260310115413-333e356ae144 knative.dev/hack v0.0.0-20260310014051-c448fdb867e2 knative.dev/pkg v0.0.0-20260310013839-5504026dd1b6 @@ -102,9 +102,9 @@ require ( k8s.io/klog/v2 v2.130.1 // indirect k8s.io/kube-openapi v0.0.0-20250910181357-589584f1c912 // indirect k8s.io/utils v0.0.0-20251002143259-bc988d571ff4 // indirect - knative.dev/eventing v0.48.1-0.20260310013839-eeacca0d3c00 // indirect - knative.dev/networking v0.0.0-20260310014911-9b69187f0a22 // indirect - knative.dev/serving v0.48.1-0.20260309143045-56af9d4a7c50 // indirect + knative.dev/eventing v0.48.1-0.20260310120613-104b6237f845 // indirect + knative.dev/networking v0.0.0-20260310020845-64a6058c2d59 // indirect + knative.dev/serving v0.48.1-0.20260310122913-81dd4ba14b9f // indirect sigs.k8s.io/gateway-api v1.1.0 // indirect sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 // indirect sigs.k8s.io/kustomize/api v0.20.1 // indirect diff --git a/go.sum b/go.sum index cce2e8c1..46ffa5c7 100644 --- a/go.sum +++ b/go.sum @@ -295,20 +295,20 @@ k8s.io/kube-openapi v0.0.0-20250910181357-589584f1c912 h1:Y3gxNAuB0OBLImH611+UDZ k8s.io/kube-openapi v0.0.0-20250910181357-589584f1c912/go.mod h1:kdmbQkyfwUagLfXIad1y2TdrjPFWp2Q89B3qkRwf/pQ= k8s.io/utils v0.0.0-20251002143259-bc988d571ff4 h1:SjGebBtkBqHFOli+05xYbK8YF1Dzkbzn+gDM4X9T4Ck= k8s.io/utils v0.0.0-20251002143259-bc988d571ff4/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= -knative.dev/client/pkg v0.0.0-20260310025245-435d663058cc h1:erRkP0OX1sKpuy59xtnHgJNFqXYveKYqm1oHHDDEGVw= -knative.dev/client/pkg v0.0.0-20260310025245-435d663058cc/go.mod h1:PfTDpui15yES0My2ZKuvO8X68N2NrSQNv6tIQYAuU1E= -knative.dev/eventing v0.48.1-0.20260310013839-eeacca0d3c00 h1:bva8lbYG1qZobshlF5godHIsovG7pdNeo2poOvcJrtI= -knative.dev/eventing v0.48.1-0.20260310013839-eeacca0d3c00/go.mod h1:nn4erf/DV7kg4qlIjz00JJjqqP6X58PaETGjDgbY8Jo= +knative.dev/client/pkg v0.0.0-20260310143814-8342632107e5 h1:RPzJ8qcg5h+jyqpA405TqZ9ihyldS4HC3NkrG5WjUFk= +knative.dev/client/pkg v0.0.0-20260310143814-8342632107e5/go.mod h1:PXr4AWXN7zHoK08QV6DCDXi5RbO5OxHFV1MMtZwKkyw= +knative.dev/eventing v0.48.1-0.20260310120613-104b6237f845 h1:i6Dhhq07M5qqgRaYQ1aTcnpAnPGHPMoyd41bc9Dy7UI= +knative.dev/eventing v0.48.1-0.20260310120613-104b6237f845/go.mod h1:nn4erf/DV7kg4qlIjz00JJjqqP6X58PaETGjDgbY8Jo= knative.dev/eventing-kafka-broker v0.48.1-0.20260310115413-333e356ae144 h1:PLmiYYpl1WBvS2OBqSfthpnYJRzY/hdAgHkYUNCWw48= knative.dev/eventing-kafka-broker v0.48.1-0.20260310115413-333e356ae144/go.mod h1:o9GL4KFIU1XHhSHcSkgktpjz1joLwcCXEhoHp66bhMg= knative.dev/hack v0.0.0-20260310014051-c448fdb867e2 h1:b35SGLEp03D8oGf8mE9HBt3yfNgYpAK0fw46hFXs9w4= knative.dev/hack v0.0.0-20260310014051-c448fdb867e2/go.mod h1:L5RzHgbvam0u8QFHfzCX6MKxu/a/gIGEdaRBqNiVbl0= -knative.dev/networking v0.0.0-20260310014911-9b69187f0a22 h1:uoA/iuXlFujOVdqPY09QCpkL7aNSevCbWPGNKjgstWA= -knative.dev/networking v0.0.0-20260310014911-9b69187f0a22/go.mod h1:cIMr1+bAKHFzpou2kVBb82skixqeheSC9heFVc/s1r8= +knative.dev/networking v0.0.0-20260310020845-64a6058c2d59 h1:aHhP0lIaA24ANji0uTmGI7eeHuPN1yVQHeMWW8+Rudk= +knative.dev/networking v0.0.0-20260310020845-64a6058c2d59/go.mod h1:72PhQ+qnOAwz9FFK8y301eWuiQ6vD9qVUFnDBjNhju8= knative.dev/pkg v0.0.0-20260310013839-5504026dd1b6 h1:oVpQ0Y+FUmRQer8kdqJjQL20KveZa5sCfnBWeJi4nyQ= knative.dev/pkg v0.0.0-20260310013839-5504026dd1b6/go.mod h1:ziEj0TQOWvBw7t/VSkqaZlv++Qk8FfiuI72ZDmv23nI= -knative.dev/serving v0.48.1-0.20260309143045-56af9d4a7c50 h1:g519c0byvJXetRnbanF/aO8LYQc8dQkbcflvQIeqsSg= -knative.dev/serving v0.48.1-0.20260309143045-56af9d4a7c50/go.mod h1:wz8mxjdRIUcWVnOUwJzuVHKhrb5IxTeIFHnXljMzS9o= +knative.dev/serving v0.48.1-0.20260310122913-81dd4ba14b9f h1:TXYQ6QXQtQHMl+QmdIQ1B+hsy0HAJNRSf93MXTw7gOw= +knative.dev/serving v0.48.1-0.20260310122913-81dd4ba14b9f/go.mod h1:9zWwmlY7J0mzmCWp61IA2BQxIWLPzCsMxbJrAkPcGEs= sigs.k8s.io/gateway-api v1.1.0 h1:DsLDXCi6jR+Xz8/xd0Z1PYl2Pn0TyaFMOPPZIj4inDM= sigs.k8s.io/gateway-api v1.1.0/go.mod h1:ZH4lHrL2sDi0FHZ9jjneb8kKnGzFWyrTya35sWUTrRs= sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 h1:IpInykpT6ceI+QxKBbEflcR5EXP7sU1kvOlxwZh5txg= diff --git a/vendor/knative.dev/eventing/pkg/apis/eventing/v1alpha1/eventtransform_lifecycle.go b/vendor/knative.dev/eventing/pkg/apis/eventing/v1alpha1/eventtransform_lifecycle.go index f87fa891..5caf1e10 100644 --- a/vendor/knative.dev/eventing/pkg/apis/eventing/v1alpha1/eventtransform_lifecycle.go +++ b/vendor/knative.dev/eventing/pkg/apis/eventing/v1alpha1/eventtransform_lifecycle.go @@ -27,8 +27,9 @@ import ( ) const ( - TransformConditionAddressable apis.ConditionType = "Addressable" - TransformationConditionReady apis.ConditionType = "TransformationReady" + TransformConditionAddressable apis.ConditionType = "Addressable" + TransformationConditionReady apis.ConditionType = "TransformationReady" + TransformationEventPoliciesReady apis.ConditionType = "EventPoliciesReady" TransformationAddressableEmptyURL string = "NoURL" TransformationAddressableWaitingForServiceEndpoints string = "WaitingForServiceEndpoints" @@ -48,6 +49,7 @@ const ( var TransformCondSet = apis.NewLivingConditionSet( TransformationConditionReady, TransformConditionAddressable, + TransformationEventPoliciesReady, ) // transformJsonataConditionSet is the subset of conditions for the Jsonata transformation @@ -211,3 +213,19 @@ func (ts *EventTransformStatus) SetAddresses(addresses ...duckv1.Addressable) { } ts.GetConditionSet().Manage(ts).MarkTrue(TransformConditionAddressable) } + +func (ts *EventTransformStatus) MarkEventPoliciesFailed(reason, messageFormat string, messageA ...interface{}) { + TransformCondSet.Manage(ts).MarkFalse(TransformationEventPoliciesReady, reason, messageFormat, messageA...) +} + +func (ts *EventTransformStatus) MarkEventPoliciesUnknown(reason, messageFormat string, messageA ...interface{}) { + TransformCondSet.Manage(ts).MarkUnknown(TransformationEventPoliciesReady, reason, messageFormat, messageA...) +} + +func (ts *EventTransformStatus) MarkEventPoliciesTrue() { + TransformCondSet.Manage(ts).MarkTrue(TransformationEventPoliciesReady) +} + +func (ts *EventTransformStatus) MarkEventPoliciesTrueWithReason(reason, messageFormat string, messageA ...interface{}) { + TransformCondSet.Manage(ts).MarkTrueWithReason(TransformationEventPoliciesReady, reason, messageFormat, messageA...) +} diff --git a/vendor/knative.dev/eventing/pkg/apis/eventing/v1alpha1/eventtransform_types.go b/vendor/knative.dev/eventing/pkg/apis/eventing/v1alpha1/eventtransform_types.go index 1680737b..40253445 100644 --- a/vendor/knative.dev/eventing/pkg/apis/eventing/v1alpha1/eventtransform_types.go +++ b/vendor/knative.dev/eventing/pkg/apis/eventing/v1alpha1/eventtransform_types.go @@ -22,6 +22,7 @@ import ( "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" + eventingduckv1 "knative.dev/eventing/pkg/apis/duck/v1" "knative.dev/pkg/apis" duckv1 "knative.dev/pkg/apis/duck/v1" "knative.dev/pkg/kmeta" @@ -130,6 +131,10 @@ type EventTransformStatus struct { // +optional duckv1.AddressStatus `json:",inline"` + // AppliedEventPoliciesStatus contains the list of EventPolicies which apply to this EventTransform. + // +optional + eventingduckv1.AppliedEventPoliciesStatus `json:",inline"` + // JsonataTransformationStatus is the status associated with JsonataEventTransformationSpec. // +optional JsonataTransformationStatus *JsonataEventTransformationStatus `json:"jsonata,omitempty"` diff --git a/vendor/knative.dev/eventing/pkg/apis/eventing/v1alpha1/zz_generated.deepcopy.go b/vendor/knative.dev/eventing/pkg/apis/eventing/v1alpha1/zz_generated.deepcopy.go index 0cfffa2d..6299041d 100644 --- a/vendor/knative.dev/eventing/pkg/apis/eventing/v1alpha1/zz_generated.deepcopy.go +++ b/vendor/knative.dev/eventing/pkg/apis/eventing/v1alpha1/zz_generated.deepcopy.go @@ -352,6 +352,7 @@ func (in *EventTransformStatus) DeepCopyInto(out *EventTransformStatus) { *out = *in in.SourceStatus.DeepCopyInto(&out.SourceStatus) in.AddressStatus.DeepCopyInto(&out.AddressStatus) + in.AppliedEventPoliciesStatus.DeepCopyInto(&out.AppliedEventPoliciesStatus) if in.JsonataTransformationStatus != nil { in, out := &in.JsonataTransformationStatus, &out.JsonataTransformationStatus *out = new(JsonataEventTransformationStatus) diff --git a/vendor/modules.txt b/vendor/modules.txt index 4d0c93e1..fd4017b6 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -844,7 +844,7 @@ k8s.io/utils/net k8s.io/utils/pointer k8s.io/utils/ptr k8s.io/utils/trace -# knative.dev/client/pkg v0.0.0-20260310025245-435d663058cc +# knative.dev/client/pkg v0.0.0-20260310143814-8342632107e5 ## explicit; go 1.25.0 knative.dev/client/pkg/apis/client knative.dev/client/pkg/apis/client/v1alpha1 @@ -871,7 +871,7 @@ knative.dev/client/pkg/util/errors knative.dev/client/pkg/util/mock knative.dev/client/pkg/util/test knative.dev/client/pkg/wait -# knative.dev/eventing v0.48.1-0.20260310013839-eeacca0d3c00 +# knative.dev/eventing v0.48.1-0.20260310120613-104b6237f845 ## explicit; go 1.25.0 knative.dev/eventing/pkg/apis/common/integration/v1alpha1 knative.dev/eventing/pkg/apis/config @@ -926,7 +926,7 @@ knative.dev/eventing-kafka-broker/control-plane/pkg/client/clientset/versioned/t # knative.dev/hack v0.0.0-20260310014051-c448fdb867e2 ## explicit; go 1.24 knative.dev/hack -# knative.dev/networking v0.0.0-20260310014911-9b69187f0a22 +# knative.dev/networking v0.0.0-20260310020845-64a6058c2d59 ## explicit; go 1.25.0 knative.dev/networking/pkg/apis/networking knative.dev/networking/pkg/apis/networking/v1alpha1 @@ -979,7 +979,7 @@ knative.dev/pkg/test/logging knative.dev/pkg/test/spoof knative.dev/pkg/tracker knative.dev/pkg/webhook/resourcesemantics -# knative.dev/serving v0.48.1-0.20260309143045-56af9d4a7c50 +# knative.dev/serving v0.48.1-0.20260310122913-81dd4ba14b9f ## explicit; go 1.25.0 knative.dev/serving/pkg/apis/autoscaling knative.dev/serving/pkg/apis/autoscaling/v1alpha1