Skip to content

Commit

Permalink
feat: add list of event types for resource gateway (#561)
Browse files Browse the repository at this point in the history
* feat: add list of event types for resource gateway

* chore: revert resource event source example
  • Loading branch information
VaibhavPage authored Mar 30, 2020
1 parent 1a3cbe6 commit b1a3e2b
Show file tree
Hide file tree
Showing 12 changed files with 138 additions and 112 deletions.
85 changes: 40 additions & 45 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions api/event-source.html
Original file line number Diff line number Diff line change
Expand Up @@ -1822,7 +1822,8 @@ <h3 id="argoproj.io/v1alpha1.ResourceEventSource">ResourceEventSource
</td>
<td>
<em>(Optional)</em>
<p>Filter is applied on the metadata of the resource</p>
<p>Filter is applied on the metadata of the resource
If you apply filter, then the internal event informer will only monitor objects that pass the filter.</p>
</td>
</tr>
<tr>
Expand All @@ -1843,17 +1844,16 @@ <h3 id="argoproj.io/v1alpha1.ResourceEventSource">ResourceEventSource
</tr>
<tr>
<td>
<code>eventType</code></br>
<code>eventTypes</code></br>
<em>
<a href="#argoproj.io/v1alpha1.ResourceEventType">
ResourceEventType
[]ResourceEventType
</a>
</em>
</td>
<td>
<em>(Optional)</em>
<p>Type is the event type.
If not provided, the gateway will watch all events for a resource.</p>
<p>EventTypes is the list of event type to watch.
Possible values are - ADD, UPDATE and DELETE.</p>
</td>
</tr>
</tbody>
Expand Down
15 changes: 7 additions & 8 deletions api/event-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -3605,7 +3605,9 @@ Namespace where resource is deployed

<p>

Filter is applied on the metadata of the resource
Filter is applied on the metadata of the resource If you apply filter,
then the internal event informer will only monitor objects that pass the
filter.

</p>

Expand Down Expand Up @@ -3646,20 +3648,18 @@ Group of the resource

<td>

<code>eventType</code></br> <em>
<a href="#argoproj.io/v1alpha1.ResourceEventType"> ResourceEventType
<code>eventTypes</code></br> <em>
<a href="#argoproj.io/v1alpha1.ResourceEventType"> \[\]ResourceEventType
</a> </em>

</td>

<td>

<em>(Optional)</em>

<p>

Type is the event type. If not provided, the gateway will watch all
events for a resource.
EventTypes is the list of event type to watch. Possible values are -
ADD, UPDATE and DELETE.

</p>

Expand Down Expand Up @@ -4775,5 +4775,4 @@ all types of events will be processed. More info at

<em> Generated with <code>gen-crd-api-reference-docs</code> on git
commit <code>1782e0f</code>. </em>

</p>
1 change: 0 additions & 1 deletion api/gateway.md
Original file line number Diff line number Diff line change
Expand Up @@ -1322,5 +1322,4 @@ NATS refers to the subscribers over NATS protocol.

<em> Generated with <code>gen-crd-api-reference-docs</code> on git
commit <code>1782e0f</code>. </em>

</p>
1 change: 0 additions & 1 deletion api/sensor.md
Original file line number Diff line number Diff line change
Expand Up @@ -6240,5 +6240,4 @@ VerifyCert decides whether the connection is secure or not

<em> Generated with <code>gen-crd-api-reference-docs</code> on git
commit <code>1782e0f</code>. </em>

</p>
2 changes: 1 addition & 1 deletion docs/setup/resource.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ The structure of an event dispatched by the gateway to the sensor looks like fol
metadata:
name: my-workflow
labels:
app: my-workflow
name: my-workflow
spec:
entrypoint: whalesay
templates:
Expand Down
Loading

0 comments on commit b1a3e2b

Please sign in to comment.