Skip to content

Commit

Permalink
feat: make deployment template in gateway obj optional. Closes #598 (#…
Browse files Browse the repository at this point in the history
…602)

* feat: make deployment spec in gateway obj optional

* test cases

* minor fix

* namespace correction

* new spec

* remove unused const

* minor

* added resources for gateway-client
  • Loading branch information
whynowy authored Apr 30, 2020
1 parent ce9ae25 commit fb46335
Show file tree
Hide file tree
Showing 20 changed files with 918 additions and 247 deletions.
2 changes: 1 addition & 1 deletion api/event-source.html
Original file line number Diff line number Diff line change
Expand Up @@ -2649,5 +2649,5 @@ <h3 id="argoproj.io/v1alpha1.TLSConfig">TLSConfig
<hr/>
<p><em>
Generated with <code>gen-crd-api-reference-docs</code>
on git commit <code>8c611e5</code>.
on git commit <code>5172d79</code>.
</em></p>
2 changes: 1 addition & 1 deletion api/event-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -5236,6 +5236,6 @@ ClientKeyPath refers the file path that contains client key.
<p>

<em> Generated with <code>gen-crd-api-reference-docs</code> on git
commit <code>8c611e5</code>. </em>
commit <code>5172d79</code>. </em>

</p>
141 changes: 124 additions & 17 deletions api/gateway.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,14 @@ <h3 id="argoproj.io/v1alpha1.Gateway">Gateway
<td>
<code>template</code></br>
<em>
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.13/#podtemplatespec-v1-core">
Kubernetes core/v1.PodTemplateSpec
<a href="#argoproj.io/v1alpha1.Template">
Template
</a>
</em>
</td>
<td>
<p>Template is the pod specification for the gateway
Refer <a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.11/#pod-v1-core">https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.11/#pod-v1-core</a></p>
<em>(Optional)</em>
<p>Template is the pod specification for the gateway</p>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -147,14 +147,14 @@ <h3 id="argoproj.io/v1alpha1.Gateway">Gateway
<td>
<code>service</code></br>
<em>
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.13/#service-v1-core">
Kubernetes core/v1.Service
<a href="#argoproj.io/v1alpha1.Service">
Service
</a>
</em>
</td>
<td>
<p>Service is the specifications of the service to expose the gateway
Refer <a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.11/#service-v1-core">https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.11/#service-v1-core</a></p>
<em>(Optional)</em>
<p>Service is the specifications of the service to expose the gateway</p>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -265,14 +265,14 @@ <h3 id="argoproj.io/v1alpha1.GatewaySpec">GatewaySpec
<td>
<code>template</code></br>
<em>
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.13/#podtemplatespec-v1-core">
Kubernetes core/v1.PodTemplateSpec
<a href="#argoproj.io/v1alpha1.Template">
Template
</a>
</em>
</td>
<td>
<p>Template is the pod specification for the gateway
Refer <a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.11/#pod-v1-core">https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.11/#pod-v1-core</a></p>
<em>(Optional)</em>
<p>Template is the pod specification for the gateway</p>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -303,14 +303,14 @@ <h3 id="argoproj.io/v1alpha1.GatewaySpec">GatewaySpec
<td>
<code>service</code></br>
<em>
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.13/#service-v1-core">
Kubernetes core/v1.Service
<a href="#argoproj.io/v1alpha1.Service">
Service
</a>
</em>
</td>
<td>
<p>Service is the specifications of the service to expose the gateway
Refer <a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.11/#service-v1-core">https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.11/#service-v1-core</a></p>
<em>(Optional)</em>
<p>Service is the specifications of the service to expose the gateway</p>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -600,6 +600,38 @@ <h3 id="argoproj.io/v1alpha1.NodeStatus">NodeStatus
</tr>
</tbody>
</table>
<h3 id="argoproj.io/v1alpha1.Service">Service
</h3>
<p>
(<em>Appears on:</em>
<a href="#argoproj.io/v1alpha1.GatewaySpec">GatewaySpec</a>)
</p>
<p>
<p>Service holds the service information gateway exposes</p>
</p>
<table>
<thead>
<tr>
<th>Field</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<code>ports</code></br>
<em>
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.13/#serviceport-v1-core">
[]Kubernetes core/v1.ServicePort
</a>
</em>
</td>
<td>
<p>The list of ports that are exposed by this service.</p>
</td>
</tr>
</tbody>
</table>
<h3 id="argoproj.io/v1alpha1.Subscribers">Subscribers
</h3>
<p>
Expand Down Expand Up @@ -644,8 +676,83 @@ <h3 id="argoproj.io/v1alpha1.Subscribers">Subscribers
</tr>
</tbody>
</table>
<h3 id="argoproj.io/v1alpha1.Template">Template
</h3>
<p>
(<em>Appears on:</em>
<a href="#argoproj.io/v1alpha1.GatewaySpec">GatewaySpec</a>)
</p>
<p>
<p>Template holds the information of a Gateway deployment template</p>
</p>
<table>
<thead>
<tr>
<th>Field</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<code>serviceAccountName</code></br>
<em>
string
</em>
</td>
<td>
<em>(Optional)</em>
<p>ServiceAccountName is the name of the ServiceAccount to use to run gateway pod.
More info: <a href="https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/">https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/</a></p>
</td>
</tr>
<tr>
<td>
<code>container</code></br>
<em>
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.13/#container-v1-core">
Kubernetes core/v1.Container
</a>
</em>
</td>
<td>
<em>(Optional)</em>
<p>Container is the main container image to run in the gateway pod</p>
</td>
</tr>
<tr>
<td>
<code>volumes</code></br>
<em>
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.13/#volume-v1-core">
[]Kubernetes core/v1.Volume
</a>
</em>
</td>
<td>
<em>(Optional)</em>
<p>Volumes is a list of volumes that can be mounted by containers in a workflow.</p>
</td>
</tr>
<tr>
<td>
<code>securityContext</code></br>
<em>
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.13/#podsecuritycontext-v1-core">
Kubernetes core/v1.PodSecurityContext
</a>
</em>
</td>
<td>
<em>(Optional)</em>
<p>SecurityContext holds pod-level security attributes and common container settings.
Optional: Defaults to empty. See type description for default values of each field.</p>
</td>
</tr>
</tbody>
</table>
<hr/>
<p><em>
Generated with <code>gen-crd-api-reference-docs</code>
on git commit <code>8c611e5</code>.
on git commit <code>5172d79</code>.
</em></p>
Loading

0 comments on commit fb46335

Please sign in to comment.