Skip to content

Commit

Permalink
feat: added label and field selectors for resource gateway (#571)
Browse files Browse the repository at this point in the history
  • Loading branch information
VaibhavPage authored Apr 1, 2020
1 parent 739f169 commit 5e3fa39
Show file tree
Hide file tree
Showing 10 changed files with 286 additions and 31 deletions.
71 changes: 68 additions & 3 deletions api/event-source.html
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ <h3 id="argoproj.io/v1alpha1.AzureEventsHubEventSource">AzureEventsHubEventSourc
</em>
</td>
<td>
<em>(Optional)</em>
<p>Namespace refers to Kubernetes namespace which is used to retrieve the shared access key and name from.</p>
</td>
</tr>
Expand Down Expand Up @@ -315,6 +316,7 @@ <h3 id="argoproj.io/v1alpha1.EmitterEventSource">EmitterEventSource
</em>
</td>
<td>
<em>(Optional)</em>
<p>Namespace to use to retrieve the channel key and optional username/password</p>
</td>
</tr>
Expand Down Expand Up @@ -1025,6 +1027,7 @@ <h3 id="argoproj.io/v1alpha1.GithubEventSource">GithubEventSource
</em>
</td>
<td>
<em>(Optional)</em>
<p>Namespace refers to Kubernetes namespace which is used to retrieve webhook secret and api token from.</p>
</td>
</tr>
Expand Down Expand Up @@ -1137,6 +1140,7 @@ <h3 id="argoproj.io/v1alpha1.GitlabEventSource">GitlabEventSource
</em>
</td>
<td>
<em>(Optional)</em>
<p>Namespace refers to Kubernetes namespace which is used to retrieve access token from.</p>
</td>
</tr>
Expand Down Expand Up @@ -1327,6 +1331,7 @@ <h3 id="argoproj.io/v1alpha1.HDFSEventSource">HDFSEventSource
</em>
</td>
<td>
<em>(Optional)</em>
<p>Namespace refers to Kubernetes namespace which is used to retrieve cache secret and ket tab secret from.</p>
</td>
</tr>
Expand Down Expand Up @@ -1899,7 +1904,9 @@ <h3 id="argoproj.io/v1alpha1.ResourceFilter">ResourceFilter
<td>
<code>labels</code></br>
<em>
map[string]string
<a href="#argoproj.io/v1alpha1.Selector">
[]Selector
</a>
</em>
</td>
<td>
Expand All @@ -1910,7 +1917,9 @@ <h3 id="argoproj.io/v1alpha1.ResourceFilter">ResourceFilter
<td>
<code>fields</code></br>
<em>
map[string]string
<a href="#argoproj.io/v1alpha1.Selector">
[]Selector
</a>
</em>
</td>
<td>
Expand Down Expand Up @@ -2162,6 +2171,61 @@ <h3 id="argoproj.io/v1alpha1.SQSEventSource">SQSEventSource
</tr>
</tbody>
</table>
<h3 id="argoproj.io/v1alpha1.Selector">Selector
</h3>
<p>
(<em>Appears on:</em>
<a href="#argoproj.io/v1alpha1.ResourceFilter">ResourceFilter</a>)
</p>
<p>
<p>Selector represents conditional operation to select K8s objects.</p>
</p>
<table>
<thead>
<tr>
<th>Field</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<code>key</code></br>
<em>
string
</em>
</td>
<td>
<p>Key name</p>
</td>
</tr>
<tr>
<td>
<code>operation</code></br>
<em>
string
</em>
</td>
<td>
<em>(Optional)</em>
<p>Supported operations like ==, !=, &lt;=, &gt;= etc.
Defaults to ==.
Refer <a href="https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors">https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors</a> for more info.</p>
</td>
</tr>
<tr>
<td>
<code>value</code></br>
<em>
string
</em>
</td>
<td>
<p>Value</p>
</td>
</tr>
</tbody>
</table>
<h3 id="argoproj.io/v1alpha1.SlackEventSource">SlackEventSource
</h3>
<p>
Expand Down Expand Up @@ -2224,6 +2288,7 @@ <h3 id="argoproj.io/v1alpha1.SlackEventSource">SlackEventSource
</em>
</td>
<td>
<em>(Optional)</em>
<p>Namespace refers to Kubernetes namespace which is used to retrieve token and signing secret from.</p>
</td>
</tr>
Expand Down Expand Up @@ -2409,5 +2474,5 @@ <h3 id="argoproj.io/v1alpha1.StripeEventSource">StripeEventSource
<hr/>
<p><em>
Generated with <code>gen-crd-api-reference-docs</code>
on git commit <code>1782e0f</code>.
on git commit <code>739f169</code>.
</em></p>
136 changes: 133 additions & 3 deletions api/event-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,8 @@ Event Hub path/name

<td>

<em>(Optional)</em>

<p>

Namespace refers to Kubernetes namespace which is used to retrieve the
Expand Down Expand Up @@ -653,6 +655,8 @@ ChannelName refers to the channel name

<td>

<em>(Optional)</em>

<p>

Namespace to use to retrieve the channel key and optional
Expand Down Expand Up @@ -2009,6 +2013,8 @@ GitHub upload URL (for GitHub Enterprise)

<td>

<em>(Optional)</em>

<p>

Namespace refers to Kubernetes namespace which is used to retrieve
Expand Down Expand Up @@ -2232,6 +2238,8 @@ GitlabBaseURL is the base URL for API requests to a custom endpoint

<td>

<em>(Optional)</em>

<p>

Namespace refers to Kubernetes namespace which is used to retrieve
Expand Down Expand Up @@ -2585,6 +2593,8 @@ must be set if either ccache or keytab is used.

<td>

<em>(Optional)</em>

<p>

Namespace refers to Kubernetes namespace which is used to retrieve cache
Expand Down Expand Up @@ -3764,7 +3774,8 @@ Description

<td>

<code>labels</code></br> <em> map\[string\]string </em>
<code>labels</code></br> <em> <a href="#argoproj.io/v1alpha1.Selector">
\[\]Selector </a> </em>

</td>

Expand All @@ -3780,7 +3791,8 @@ Description

<td>

<code>fields</code></br> <em> map\[string\]string </em>
<code>fields</code></br> <em> <a href="#argoproj.io/v1alpha1.Selector">
\[\]Selector </a> </em>

</td>

Expand Down Expand Up @@ -4263,6 +4275,121 @@ monitor

</table>

<h3 id="argoproj.io/v1alpha1.Selector">

Selector

</h3>

<p>

(<em>Appears on:</em>
<a href="#argoproj.io/v1alpha1.ResourceFilter">ResourceFilter</a>)

</p>

<p>

<p>

Selector represents conditional operation to select K8s objects.

</p>

</p>

<table>

<thead>

<tr>

<th>

Field

</th>

<th>

Description

</th>

</tr>

</thead>

<tbody>

<tr>

<td>

<code>key</code></br> <em> string </em>

</td>

<td>

<p>

Key name

</p>

</td>

</tr>

<tr>

<td>

<code>operation</code></br> <em> string </em>

</td>

<td>

<em>(Optional)</em>

<p>

Supported operations like ==, \!=, \<=, \>= etc. Defaults to ==. Refer
<a href="https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors">https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/\#label-selectors</a>
for more info.

</p>

</td>

</tr>

<tr>

<td>

<code>value</code></br> <em> string </em>

</td>

<td>

<p>

Value

</p>

</td>

</tr>

</tbody>

</table>

<h3 id="argoproj.io/v1alpha1.SlackEventSource">

SlackEventSource
Expand Down Expand Up @@ -4386,6 +4513,8 @@ Webhook holds configuration for a REST endpoint

<td>

<em>(Optional)</em>

<p>

Namespace refers to Kubernetes namespace which is used to retrieve token
Expand Down Expand Up @@ -4774,5 +4903,6 @@ all types of events will be processed. More info at
<p>

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

</p>
2 changes: 1 addition & 1 deletion api/gateway.html
Original file line number Diff line number Diff line change
Expand Up @@ -671,5 +671,5 @@ <h3 id="argoproj.io/v1alpha1.Subscribers">Subscribers
<hr/>
<p><em>
Generated with <code>gen-crd-api-reference-docs</code>
on git commit <code>1782e0f</code>.
on git commit <code>739f169</code>.
</em></p>
3 changes: 2 additions & 1 deletion api/gateway.md
Original file line number Diff line number Diff line change
Expand Up @@ -1321,5 +1321,6 @@ NATS refers to the subscribers over NATS protocol.
<p>

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

</p>
2 changes: 1 addition & 1 deletion api/sensor.html
Original file line number Diff line number Diff line change
Expand Up @@ -3131,5 +3131,5 @@ <h3 id="argoproj.io/v1alpha1.URLArtifact">URLArtifact
<hr/>
<p><em>
Generated with <code>gen-crd-api-reference-docs</code>
on git commit <code>1782e0f</code>.
on git commit <code>739f169</code>.
</em></p>
3 changes: 2 additions & 1 deletion api/sensor.md
Original file line number Diff line number Diff line change
Expand Up @@ -6239,5 +6239,6 @@ VerifyCert decides whether the connection is secure or not
<p>

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

</p>
Loading

0 comments on commit 5e3fa39

Please sign in to comment.