Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into chore/vendorless
Browse files Browse the repository at this point in the history
  • Loading branch information
cardil committed Jul 9, 2024
2 parents 0e18df9 + 71d7e5e commit 0326128
Show file tree
Hide file tree
Showing 63 changed files with 1,800 additions and 174 deletions.
5 changes: 3 additions & 2 deletions .codecov.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ coverage:
status:
project:
default:
target: auto # Reject coverage drop of more than 1%
threshold: 1%
# Reject the coverage drop
target: auto
threshold: 0%
patch:
# Disable the coverage threshold of the patch, so that PRs are
# only failing because of overall project coverage threshold.
Expand Down
11 changes: 10 additions & 1 deletion OWNERS_ALIASES
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ aliases:
- lkingland
- salaboy
knative-admin:
- Cali0707
- Leo6Leo
- ReToCode
- aliok
- cardil
- davidhadas
Expand All @@ -63,8 +66,14 @@ aliases:
- nainaz
- psschwei
- salaboy
- skonto
- upodroid
knative-release-leads: []
knative-release-leads:
- Cali0707
- Leo6Leo
- ReToCode
- dsimansk
- skonto
knative-robots:
- knative-automation
- knative-prow-releaser-robot
Expand Down
1 change: 1 addition & 0 deletions config/300-eventpolicy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ rules:
- brokers/status
- triggers
- triggers/status
- eventpolicies
verbs:
- get
- list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ rules:
- eventing.knative.dev
resources:
- brokers
- eventpolicies
verbs:
- get
- list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,14 @@ rules:
- eventing.knative.dev
resources:
- eventtypes
- eventpolicies
verbs:
- create
- get
- list
- watch
- apiGroups:
- eventing.knative.dev
resources:
- eventtypes
verbs:
- create
12 changes: 12 additions & 0 deletions config/core/resources/jobsink.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,18 @@ spec:
description: Annotations is additional Status fields for the Resource to save some additional State as well as convey more information to the user. This is roughly akin to Annotations on any k8s resource, just the reconciler conveying richer information outwards.
type: object
x-kubernetes-preserve-unknown-fields: true
policies:
description: List of applied EventPolicies
type: array
items:
type: object
properties:
apiVersion:
description: The API version of the applied EventPolicy. This indicates, which version of EventPolicy is supported by the resource.
type: string
name:
description: The name of the applied EventPolicy
type: string
conditions:
description: Conditions the latest available observations of a resource's current state.
type: array
Expand Down
41 changes: 39 additions & 2 deletions config/core/resources/trigger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,50 @@ spec:
type: integer
format: int32
filter:
description: 'Filter is the filter to apply against all events from the Broker. Only events that pass this filter will be sent to the Subscriber. If not specified, will default to allowing all events. '
description: 'Filter is the filter to apply against all events from the Broker. Only events that pass this filter will be sent to the Subscriber. If not specified, will default to allowing all events.'
type: object
properties:
attributes:
description: 'Attributes filters events by exact match on event context attributes. Each key in the map is compared with the equivalent key in the event context. An event passes the filter if all values are equal to the specified values. Nested context attributes are not supported as keys. Only string values are supported. '
description: 'Attributes filters events by exact match on event context attributes. Each key in the map is compared with the equivalent key in the event context. An event passes the filter if all values are equal to the specified values. Nested context attributes are not supported as keys. Only string values are supported.'
type: object
x-kubernetes-preserve-unknown-fields: true
filters:
description: 'Filters is an array of SubscriptionsAPIFilter that evaluate to true or false. If any filter expression in the array evaluates to false, the event must not be sent to the Subscriber. If all the filter expressions in the array evaluate to true, the event must be attempted to be delivered. Absence of a filter or empty array implies a value of true. In the event of users specifying both Filter and Filters, then the latter will override the former. This will allow users to try out the effect of the new Filters field without compromising the existing attribute-based Filter and try it out on existing Trigger objects.'
type: array
items:
type: object
properties:
all:
description: 'All evaluates to true if all the nested expressions evaluate to true. It must contain at least one filter expression.'
type: array
items:
type: object
x-kubernetes-preserve-unknown-fields: true
any:
description: 'Any evaluates to true if at least one of the nested expressions evaluates to true. It must contain at least one filter expression.'
type: array
items:
type: object
x-kubernetes-preserve-unknown-fields: true
cesql:
description: 'CESQL is a CloudEvents SQL expression that will be evaluated to true or false against each CloudEvent.'
type: string
exact:
description: 'Exact evaluates to true if the values of the matching CloudEvents attributes all exactly match with the associated value String specified (case-sensitive). The keys are the names of the CloudEvents attributes to be matched, and their values are the String values to use in the comparison. The attribute name and value specified in the filter express must not be empty strings.'
type: object
x-kubernetes-preserve-unknown-fields: true
not:
description: 'Not evaluates to true if the nested expression evaluates to false.'
type: object
x-kubernetes-preserve-unknown-fields: true
prefix:
description: 'Prefix evaluates to true if the values of the matching CloudEvents attributes all start with the associated value String specified (case sensitive). The keys are the names of the CloudEvents attributes to be matched, and their values are the String values to use in the comparison. The attribute name and value specified in the filter express must not be empty strings.'
type: object
x-kubernetes-preserve-unknown-fields: true
suffix:
description: 'Suffix evaluates to true if the values of the matching CloudEvents attributes all end with the associated value String specified (case sensitive). The keys are the names of the CloudEvents attributes to be matched, and their values are the String values to use in the comparison. The attribute name and value specified in the filter express must not be empty strings.'
type: object
x-kubernetes-preserve-unknown-fields: true
subscriber:
description: Subscriber is the addressable that receives events from the Broker that pass the Filter. It is required.
type: object
Expand Down
9 changes: 8 additions & 1 deletion config/core/roles/job-sink-clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,11 @@ rules:
- create
- update
- patch

- apiGroups:
- eventing.knative.dev
resources:
- eventpolicies
verbs:
- get
- list
- watch
9 changes: 9 additions & 0 deletions config/core/roles/webhook-clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,15 @@ rules:
- "create"
- "patch"

- apiGroups:
- eventing.knative.dev
resources:
- eventpolicies
verbs:
- get
- list
- watch

# For the SinkBinding reconciler adding the OIDC identity service accounts
- apiGroups:
- ""
Expand Down
58 changes: 57 additions & 1 deletion docs/eventing-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Resource Types:
<h3 id="duck.knative.dev/v1.AppliedEventPoliciesStatus">AppliedEventPoliciesStatus
</h3>
<p>
(<em>Appears on:</em><a href="#duck.knative.dev/v1.ChannelableStatus">ChannelableStatus</a>, <a href="#eventing.knative.dev/v1.BrokerStatus">BrokerStatus</a>, <a href="#flows.knative.dev/v1.ParallelStatus">ParallelStatus</a>, <a href="#flows.knative.dev/v1.SequenceStatus">SequenceStatus</a>)
(<em>Appears on:</em><a href="#duck.knative.dev/v1.ChannelableStatus">ChannelableStatus</a>, <a href="#eventing.knative.dev/v1.BrokerStatus">BrokerStatus</a>, <a href="#flows.knative.dev/v1.ParallelStatus">ParallelStatus</a>, <a href="#flows.knative.dev/v1.SequenceStatus">SequenceStatus</a>, <a href="#sinks.knative.dev/v1alpha1.JobSinkStatus">JobSinkStatus</a>)
</p>
<p>
<p>AppliedEventPoliciesStatus contains the list of policies which apply to a resource.
Expand Down Expand Up @@ -504,6 +504,24 @@ For more details: <a href="https://github.com/knative/eventing/issues/5811">http
- <a href="https://en.wikipedia.org/wiki/ISO_8601">https://en.wikipedia.org/wiki/ISO_8601</a></p>
</td>
</tr>
<tr>
<td>
<code>format</code><br/>
<em>
<a href="#duck.knative.dev/v1.FormatType">
FormatType
</a>
</em>
</td>
<td>
<em>(Optional)</em>
<p>format specifies the desired event format for the cloud event.
It can be one of the following values:
- nil: default value, no specific format required.
- &ldquo;JSON&rdquo;: indicates the event should be in structured mode.
- &ldquo;binary&rdquo;: indicates the event should be in binary mode.</p>
</td>
</tr>
</tbody>
</table>
<h3 id="duck.knative.dev/v1.DeliveryStatus">DeliveryStatus
Expand Down Expand Up @@ -564,6 +582,27 @@ string
</tr>
</tbody>
</table>
<h3 id="duck.knative.dev/v1.FormatType">FormatType
(<code>string</code> alias)</p></h3>
<p>
(<em>Appears on:</em><a href="#duck.knative.dev/v1.DeliverySpec">DeliverySpec</a>)
</p>
<p>
<p>FormatType is the type for delivery format</p>
</p>
<table>
<thead>
<tr>
<th>Value</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr><td><p>&#34;binary&#34;</p></td>
<td></td>
</tr><tr><td><p>&#34;json&#34;</p></td>
<td></td>
</tr></tbody>
</table>
<h3 id="duck.knative.dev/v1.Subscribable">Subscribable
</h3>
<p>
Expand Down Expand Up @@ -5951,6 +5990,23 @@ JobStatus
<em>(Optional)</em>
</td>
</tr>
<tr>
<td>
<code>AppliedEventPoliciesStatus</code><br/>
<em>
<a href="#duck.knative.dev/v1.AppliedEventPoliciesStatus">
AppliedEventPoliciesStatus
</a>
</em>
</td>
<td>
<p>
(Members of <code>AppliedEventPoliciesStatus</code> are embedded into this type.)
</p>
<em>(Optional)</em>
<p>AppliedEventPoliciesStatus contains the list of EventPolicies which apply to this JobSink</p>
</td>
</tr>
</tbody>
</table>
<h3 id="sinks.knative.dev/v1alpha1.JobStatus">JobStatus
Expand Down
24 changes: 12 additions & 12 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,18 @@ require (
go.uber.org/atomic v1.10.0
go.uber.org/multierr v1.11.0
go.uber.org/zap v1.27.0
golang.org/x/net v0.26.0
golang.org/x/net v0.27.0
golang.org/x/sync v0.7.0
k8s.io/api v0.29.2
k8s.io/apiextensions-apiserver v0.29.2
k8s.io/apimachinery v0.29.2
k8s.io/apiserver v0.29.2
k8s.io/client-go v0.29.2
k8s.io/utils v0.0.0-20240102154912-e7106e64919e
knative.dev/hack v0.0.0-20240607132042-09143140a254
knative.dev/hack/schema v0.0.0-20240607132042-09143140a254
knative.dev/pkg v0.0.0-20240626134149-3f6a546ac3a4
knative.dev/reconciler-test v0.0.0-20240618170853-5bf0b86114f8
knative.dev/hack v0.0.0-20240704013904-b9799599afcf
knative.dev/hack/schema v0.0.0-20240704013904-b9799599afcf
knative.dev/pkg v0.0.0-20240708181110-b4e5f07a2c37
knative.dev/reconciler-test v0.0.0-20240704013940-3a59c9dfb680
sigs.k8s.io/yaml v1.4.0
)

Expand All @@ -61,7 +61,7 @@ require (
github.com/blang/semver/v4 v4.0.0 // indirect
github.com/blendle/zapdriver v1.3.1 // indirect
github.com/census-instrumentation/opencensus-proto v0.4.1 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
github.com/evanphx/json-patch v4.12.0+incompatible // indirect
Expand Down Expand Up @@ -98,19 +98,19 @@ require (
github.com/spf13/pflag v1.0.5 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
go.uber.org/automaxprocs v1.5.3 // indirect
golang.org/x/crypto v0.24.0 // indirect
golang.org/x/mod v0.18.0 // indirect
golang.org/x/crypto v0.25.0 // indirect
golang.org/x/mod v0.19.0 // indirect
golang.org/x/oauth2 v0.21.0 // indirect
golang.org/x/sys v0.21.0 // indirect
golang.org/x/term v0.21.0 // indirect
golang.org/x/sys v0.22.0 // indirect
golang.org/x/term v0.22.0 // indirect
golang.org/x/text v0.16.0 // indirect
golang.org/x/time v0.5.0 // indirect
golang.org/x/tools v0.22.0 // indirect
golang.org/x/tools v0.23.0 // indirect
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
google.golang.org/api v0.183.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240604185151-ef581f913117 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240528184218-531527333157 // indirect
google.golang.org/grpc v1.64.0 // indirect
google.golang.org/grpc v1.65.0 // indirect
google.golang.org/protobuf v1.34.1 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
Expand Down
Loading

0 comments on commit 0326128

Please sign in to comment.