Skip to content

Commit

Permalink
Move interceptor types to implementation
Browse files Browse the repository at this point in the history
Moved types used by interceptors from `trigger_types.go` to the
interceptors specific implementation as requested in
PR tektoncd#1507 and issues tektoncd#1513
  • Loading branch information
kcloutie authored and tekton-robot committed May 11, 2023
1 parent 73f76c0 commit 584a556
Show file tree
Hide file tree
Showing 21 changed files with 298 additions and 1,106 deletions.
357 changes: 0 additions & 357 deletions docs/triggers-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -3144,146 +3144,6 @@ TriggerBindingStatus
</tr>
</tbody>
</table>
<h3 id="triggers.tekton.dev/v1beta1.BitbucketInterceptor">BitbucketInterceptor
</h3>
<div>
<p>BitbucketInterceptor provides a webhook to intercept and pre-process events</p>
</div>
<table>
<thead>
<tr>
<th>Field</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<code>secretRef</code><br/>
<em>
<a href="#triggers.tekton.dev/v1beta1.SecretRef">
SecretRef
</a>
</em>
</td>
<td>
</td>
</tr>
<tr>
<td>
<code>eventTypes</code><br/>
<em>
[]string
</em>
</td>
<td>
</td>
</tr>
</tbody>
</table>
<h3 id="triggers.tekton.dev/v1beta1.CELInterceptor">CELInterceptor
</h3>
<div>
<p>CELInterceptor provides a webhook to intercept and pre-process events</p>
</div>
<table>
<thead>
<tr>
<th>Field</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<code>filter</code><br/>
<em>
string
</em>
</td>
<td>
</td>
</tr>
<tr>
<td>
<code>overlays</code><br/>
<em>
<a href="#triggers.tekton.dev/v1beta1.CELOverlay">
[]CELOverlay
</a>
</em>
</td>
<td>
</td>
</tr>
</tbody>
</table>
<h3 id="triggers.tekton.dev/v1beta1.CELOverlay">CELOverlay
</h3>
<p>
(<em>Appears on:</em><a href="#triggers.tekton.dev/v1beta1.CELInterceptor">CELInterceptor</a>)
</p>
<div>
<p>CELOverlay provides a way to modify the request body using CEL expressions</p>
</div>
<table>
<thead>
<tr>
<th>Field</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<code>key</code><br/>
<em>
string
</em>
</td>
<td>
</td>
</tr>
<tr>
<td>
<code>expression</code><br/>
<em>
string
</em>
</td>
<td>
</td>
</tr>
</tbody>
</table>
<h3 id="triggers.tekton.dev/v1beta1.CheckType">CheckType
(<code>string</code> alias)</h3>
<p>
(<em>Appears on:</em><a href="#triggers.tekton.dev/v1beta1.GithubOwners">GithubOwners</a>)
</p>
<div>
</div>
<table>
<thead>
<tr>
<th>Value</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr><td><p>&#34;all&#34;</p></td>
<td><p>Set the checkType to all if both repo members or org members can submit or comment on PR to proceed</p>
</td>
</tr><tr><td><p>&#34;none&#34;</p></td>
<td><p>Set the checkType to none if neither of repo members or org members can not submit or comment on PR to proceed</p>
</td>
</tr><tr><td><p>&#34;orgMembers&#34;</p></td>
<td><p>Set the checkType to orgMembers to allow org members to submit or comment on PR to proceed</p>
</td>
</tr><tr><td><p>&#34;repoMembers&#34;</p></td>
<td><p>Set the checkType to repoMembers to allow repo members to submit or comment on PR to proceed</p>
</td>
</tr></tbody>
</table>
<h3 id="triggers.tekton.dev/v1beta1.CustomResource">CustomResource
</h3>
<p>
Expand Down Expand Up @@ -3697,196 +3557,6 @@ Kubernetes meta/v1.LabelSelector
</tr>
</tbody>
</table>
<h3 id="triggers.tekton.dev/v1beta1.GitHubInterceptor">GitHubInterceptor
</h3>
<div>
<p>GitHubInterceptor provides a webhook to intercept and pre-process events</p>
</div>
<table>
<thead>
<tr>
<th>Field</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<code>secretRef</code><br/>
<em>
<a href="#triggers.tekton.dev/v1beta1.SecretRef">
SecretRef
</a>
</em>
</td>
<td>
</td>
</tr>
<tr>
<td>
<code>eventTypes</code><br/>
<em>
[]string
</em>
</td>
<td>
</td>
</tr>
<tr>
<td>
<code>addChangedFiles</code><br/>
<em>
<a href="#triggers.tekton.dev/v1beta1.GithubAddChangedFiles">
GithubAddChangedFiles
</a>
</em>
</td>
<td>
</td>
</tr>
<tr>
<td>
<code>githubOwners</code><br/>
<em>
<a href="#triggers.tekton.dev/v1beta1.GithubOwners">
GithubOwners
</a>
</em>
</td>
<td>
</td>
</tr>
</tbody>
</table>
<h3 id="triggers.tekton.dev/v1beta1.GitLabInterceptor">GitLabInterceptor
</h3>
<div>
<p>GitLabInterceptor provides a webhook to intercept and pre-process events</p>
</div>
<table>
<thead>
<tr>
<th>Field</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<code>secretRef</code><br/>
<em>
<a href="#triggers.tekton.dev/v1beta1.SecretRef">
SecretRef
</a>
</em>
</td>
<td>
</td>
</tr>
<tr>
<td>
<code>eventTypes</code><br/>
<em>
[]string
</em>
</td>
<td>
</td>
</tr>
</tbody>
</table>
<h3 id="triggers.tekton.dev/v1beta1.GithubAddChangedFiles">GithubAddChangedFiles
</h3>
<p>
(<em>Appears on:</em><a href="#triggers.tekton.dev/v1beta1.GitHubInterceptor">GitHubInterceptor</a>)
</p>
<div>
</div>
<table>
<thead>
<tr>
<th>Field</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<code>enabled</code><br/>
<em>
bool
</em>
</td>
<td>
</td>
</tr>
<tr>
<td>
<code>personalAccessToken</code><br/>
<em>
<a href="#triggers.tekton.dev/v1beta1.SecretRef">
SecretRef
</a>
</em>
</td>
<td>
</td>
</tr>
</tbody>
</table>
<h3 id="triggers.tekton.dev/v1beta1.GithubOwners">GithubOwners
</h3>
<p>
(<em>Appears on:</em><a href="#triggers.tekton.dev/v1beta1.GitHubInterceptor">GitHubInterceptor</a>)
</p>
<div>
</div>
<table>
<thead>
<tr>
<th>Field</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<code>enabled</code><br/>
<em>
bool
</em>
</td>
<td>
</td>
</tr>
<tr>
<td>
<code>personalAccessToken</code><br/>
<em>
<a href="#triggers.tekton.dev/v1beta1.SecretRef">
SecretRef
</a>
</em>
</td>
<td>
<p>This param/variable is required for private repos or when checkType is set to orgMembers or repoMembers or all</p>
</td>
</tr>
<tr>
<td>
<code>checkType</code><br/>
<em>
<a href="#triggers.tekton.dev/v1beta1.CheckType">
CheckType
</a>
</em>
</td>
<td>
<p>Set the value to one of the supported values (orgMembers, repoMembers, both, none)</p>
</td>
</tr>
</tbody>
</table>
<h3 id="triggers.tekton.dev/v1beta1.InterceptorInterface">InterceptorInterface
</h3>
<div>
Expand Down Expand Up @@ -4376,9 +4046,6 @@ CustomResource
</table>
<h3 id="triggers.tekton.dev/v1beta1.SecretRef">SecretRef
</h3>
<p>
(<em>Appears on:</em><a href="#triggers.tekton.dev/v1beta1.BitbucketInterceptor">BitbucketInterceptor</a>, <a href="#triggers.tekton.dev/v1beta1.GitHubInterceptor">GitHubInterceptor</a>, <a href="#triggers.tekton.dev/v1beta1.GitLabInterceptor">GitLabInterceptor</a>, <a href="#triggers.tekton.dev/v1beta1.GithubAddChangedFiles">GithubAddChangedFiles</a>, <a href="#triggers.tekton.dev/v1beta1.GithubOwners">GithubOwners</a>)
</p>
<div>
<p>SecretRef contains the information required to reference a single secret string
This is needed because the other secretRef types are not cross-namespace and do not
Expand Down Expand Up @@ -4414,30 +4081,6 @@ string
</tr>
</tbody>
</table>
<h3 id="triggers.tekton.dev/v1beta1.SlackInterceptor">SlackInterceptor
</h3>
<div>
</div>
<table>
<thead>
<tr>
<th>Field</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<code>requestedFields</code><br/>
<em>
[]string
</em>
</td>
<td>
</td>
</tr>
</tbody>
</table>
<h3 id="triggers.tekton.dev/v1beta1.Status">Status
</h3>
<p>
Expand Down
Loading

0 comments on commit 584a556

Please sign in to comment.