Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add list of event types for resource gateway #561

Merged
merged 3 commits into from
Mar 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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