Skip to content

Commit

Permalink
codegen using Go 1.19
Browse files Browse the repository at this point in the history
The golang linting was upgraded in our CI to accomodate gofmt changes in Go
1.19.

Please refer to the related PRs/issues:

tektoncd#5944
tektoncd#5771

Signed-off-by: Yongxuan Zhang [email protected]
  • Loading branch information
Yongxuanzhang committed Feb 23, 2023
1 parent 37b364a commit eb100dc
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 56 deletions.
38 changes: 24 additions & 14 deletions docs/pipeline-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -5960,9 +5960,9 @@ RunStatus
<h3 id="tekton.dev/v1alpha1.VerificationPolicy">VerificationPolicy
</h3>
<div>
<p>VerificationPolicy defines the Tekton resources and corresponding authorities to verify.
The VerificationPolicy is used in trusted resources to store the public keys to verify
Tekton resources.</p>
<p>VerificationPolicy defines the rules to verify Tekton resources.
VerificationPolicy can config the mapping from resources to a list of public
keys, so when verifying the resources we can use the corresponding public keys.</p>
</div>
<table>
<thead>
Expand Down Expand Up @@ -6028,9 +6028,9 @@ VerificationPolicySpec
</em>
</td>
<td>
<p>Resources defines the patterns of Resources names that should be subject to this policy.
For example, we may want to apply this Policy only from a certain github repo.
Then the ResourcesPattern should include the path. If using gitresolver, and we want to config keys from a certain git repo.
<p>Resources defines the patterns of resources sources that should be subject to this policy.
For example, we may want to apply this Policy from a certain GitHub repo.
Then the ResourcesPattern should be valid regex. E.g. If using gitresolver, and we want to config keys from a certain git repo.
<code>ResourcesPattern</code> can be <code>https://github.com/tektoncd/catalog.git</code>, we will use regex to filter out those resources.</p>
</td>
</tr>
Expand Down Expand Up @@ -6188,7 +6188,7 @@ the controller, but was unused as there is no controller for PipelineResource.</
(<em>Appears on:</em><a href="#tekton.dev/v1alpha1.VerificationPolicySpec">VerificationPolicySpec</a>)
</p>
<div>
<p>The Authority block defines the rules for validating signatures.</p>
<p>The Authority block defines the keys for validating signatures.</p>
</div>
<table>
<thead>
Expand Down Expand Up @@ -6219,7 +6219,7 @@ KeyRef
</em>
</td>
<td>
<p>Key defines the type of key to validate the resource.</p>
<p>Key contains the public key to validate the resource.</p>
</td>
</tr>
</tbody>
Expand Down Expand Up @@ -6295,6 +6295,14 @@ structs.</p>
</tr>
</tbody>
</table>
<h3 id="tekton.dev/v1alpha1.HashAlgorithm">HashAlgorithm
(<code>string</code> alias)</h3>
<p>
(<em>Appears on:</em><a href="#tekton.dev/v1alpha1.KeyRef">KeyRef</a>)
</p>
<div>
<p>HashAlgorithm defines the hash algorithm used for the public key</p>
</div>
<h3 id="tekton.dev/v1alpha1.KeyRef">KeyRef
</h3>
<p>
Expand Down Expand Up @@ -6341,7 +6349,9 @@ string
<td>
<code>hashAlgorithm</code><br/>
<em>
string
<a href="#tekton.dev/v1alpha1.HashAlgorithm">
HashAlgorithm
</a>
</em>
</td>
<td>
Expand Down Expand Up @@ -6376,8 +6386,8 @@ string
</td>
<td>
<p>Pattern defines a resource pattern. Regex is created to filter resources based on <code>Pattern</code>
Examples patterns:
Github resource: <a href="https://github.com/tektoncd/catalog.git">https://github.com/tektoncd/catalog.git</a>, <a href="https://github.com/tektoncd/*">https://github.com/tektoncd/*</a>
Example patterns:
GitHub resource: <a href="https://github.com/tektoncd/catalog.git">https://github.com/tektoncd/catalog.git</a>, <a href="https://github.com/tektoncd/*">https://github.com/tektoncd/*</a>
Bundle resource: gcr.io/tekton-releases/catalog/upstream/git-clone, gcr.io/tekton-releases/catalog/upstream/*
Hub resource: <a href="https://artifacthub.io/*">https://artifacthub.io/*</a>,</p>
</td>
Expand Down Expand Up @@ -6587,9 +6597,9 @@ Refer Go&rsquo;s ParseDuration documentation for expected format: <a href="https
</em>
</td>
<td>
<p>Resources defines the patterns of Resources names that should be subject to this policy.
For example, we may want to apply this Policy only from a certain github repo.
Then the ResourcesPattern should include the path. If using gitresolver, and we want to config keys from a certain git repo.
<p>Resources defines the patterns of resources sources that should be subject to this policy.
For example, we may want to apply this Policy from a certain GitHub repo.
Then the ResourcesPattern should be valid regex. E.g. If using gitresolver, and we want to config keys from a certain git repo.
<code>ResourcesPattern</code> can be <code>https://github.com/tektoncd/catalog.git</code>, we will use regex to filter out those resources.</p>
</td>
</tr>
Expand Down
14 changes: 7 additions & 7 deletions pkg/client/clientset/versioned/fake/register.go

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

14 changes: 7 additions & 7 deletions pkg/client/clientset/versioned/scheme/register.go

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

14 changes: 7 additions & 7 deletions pkg/client/resolution/clientset/versioned/fake/register.go

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

14 changes: 7 additions & 7 deletions pkg/client/resolution/clientset/versioned/scheme/register.go

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

14 changes: 7 additions & 7 deletions pkg/client/resource/clientset/versioned/fake/register.go

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

14 changes: 7 additions & 7 deletions pkg/client/resource/clientset/versioned/scheme/register.go

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

0 comments on commit eb100dc

Please sign in to comment.