Skip to content

Commit

Permalink
Improve the API documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
bigkevmcd committed Nov 1, 2024
1 parent 18c1f31 commit 8a9e435
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions api/v1/receiver_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ type ReceiverSpec struct {
// +required
Resources []CrossNamespaceObjectReference `json:"resources"`

// ResourceFilter is an expression that is applied to each Resource
// ResourceFilter is a CEL expression that is applied to each Resource
// referenced in the Resources. If the expression returns false then the
// Resource is discarded and will not be notified.
// Resource will not be notified.
ResourceFilter string `json:"resourceFilter,omitempty"`

// SecretRef specifies the Secret containing the token used
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ spec:
type: string
resourceFilter:
description: |-
ResourceFilter is an expression that is applied to each Resource
ResourceFilter is a CEL expression that is applied to each Resource
referenced in the Resources. If the expression returns false then the
Resource is discarded and will not be notified.
Resource will not be notified.
type: string
resources:
description: A list of resources to be notified about changes.
Expand Down
8 changes: 4 additions & 4 deletions docs/api/v1/notification.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ string
</em>
</td>
<td>
<p>ResourceFilter is an expression that is applied to each Resource
<p>ResourceFilter is a CEL expression that is applied to each Resource
referenced in the Resources. If the expression returns false then the
Resource is discarded and will not be notified.</p>
Resource will not be notified.</p>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -340,9 +340,9 @@ string
</em>
</td>
<td>
<p>ResourceFilter is an expression that is applied to each Resource
<p>ResourceFilter is a CEL expression that is applied to each Resource
referenced in the Resources. If the expression returns false then the
Resource is discarded and will not be notified.</p>
Resource will not be notified.</p>
</td>
</tr>
<tr>
Expand Down

0 comments on commit 8a9e435

Please sign in to comment.