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

Add Chains management command #1440

Merged
merged 3 commits into from
Mar 3, 2022
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions docs/cmd/tkn.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ CLI for tekton pipelines
### SEE ALSO

* [tkn bundle](tkn_bundle.md) - Manage Tekton Bundles
* [tkn chains](tkn_chains.md) - Manage Tekton Chains
* [tkn clustertask](tkn_clustertask.md) - Manage ClusterTasks
* [tkn clustertriggerbinding](tkn_clustertriggerbinding.md) - Manage ClusterTriggerBindings
* [tkn completion](tkn_completion.md) - Prints shell completion scripts
Expand Down
27 changes: 27 additions & 0 deletions docs/cmd/tkn_chains.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## tkn chains

Manage Tekton Chains

### Usage

```
tkn chains
```

### Synopsis

Manage Tekton Chains

### Options

```
-h, --help help for chains
-C, --no-color disable coloring (default: false)
```

### SEE ALSO

* [tkn](tkn.md) - CLI for tekton pipelines
* [tkn chains payload](tkn_chains_payload.md) - Print a Tekton chains' payload for a specific taskrun
* [tkn chains signature](tkn_chains_signature.md) - Print a Tekton chains' signature for a specific taskrun

30 changes: 30 additions & 0 deletions docs/cmd/tkn_chains_format.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
## tkn chains format

Configure Tekton chains' provenance format

### Usage

```
tkn chains format
```

### Synopsis

Configure Tekton chains' provenance format

### Options

```
-h, --help help for format
```

### Options inherited from parent commands

```
-C, --no-color disable coloring (default: false)
```

### SEE ALSO

* [tkn chains](tkn_chains.md) - Manage Tekton Chains

35 changes: 35 additions & 0 deletions docs/cmd/tkn_chains_payload.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
## tkn chains payload

Print a Tekton chains' payload for a specific taskrun

### Usage

```
tkn chains payload
```

### Synopsis

Print a Tekton chains' payload for a specific taskrun

### Options

```
--allow-missing-template-keys If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. (default true)
-h, --help help for payload
-o, --output string Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.
--show-managed-fields If true, keep the managedFields when printing objects in JSON or YAML format.
-S, --skip-verify Skip verifying the payload'signature
--template string Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].
```

### Options inherited from parent commands

```
-C, --no-color disable coloring (default: false)
```

### SEE ALSO

* [tkn chains](tkn_chains.md) - Manage Tekton Chains

30 changes: 30 additions & 0 deletions docs/cmd/tkn_chains_signature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
## tkn chains signature

Print a Tekton chains' signature for a specific taskrun

### Usage

```
tkn chains signature
```

### Synopsis

Print a Tekton chains' signature for a specific taskrun

### Options

```
-h, --help help for signature
```

### Options inherited from parent commands

```
-C, --no-color disable coloring (default: false)
```

### SEE ALSO

* [tkn chains](tkn_chains.md) - Manage Tekton Chains

35 changes: 35 additions & 0 deletions docs/man/man1/tkn-chains-format.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
.TH "TKN\-CHAINS\-FORMAT" "1" "" "Auto generated by spf13/cobra" ""
.nh
.ad l


.SH NAME
.PP
tkn\-chains\-format \- Configure Tekton chains' provenance format


.SH SYNOPSIS
.PP
\fBtkn chains format\fP


.SH DESCRIPTION
.PP
Configure Tekton chains' provenance format


.SH OPTIONS
.PP
\fB\-h\fP, \fB\-\-help\fP[=false]
help for format


.SH OPTIONS INHERITED FROM PARENT COMMANDS
.PP
\fB\-C\fP, \fB\-\-no\-color\fP[=false]
disable coloring (default: false)


.SH SEE ALSO
.PP
\fBtkn\-chains(1)\fP
56 changes: 56 additions & 0 deletions docs/man/man1/tkn-chains-payload.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
.TH "TKN\-CHAINS\-PAYLOAD" "1" "" "Auto generated by spf13/cobra" ""
.nh
.ad l


.SH NAME
.PP
tkn\-chains\-payload \- Print a Tekton chains' payload for a specific taskrun


.SH SYNOPSIS
.PP
\fBtkn chains payload\fP


.SH DESCRIPTION
.PP
Print a Tekton chains' payload for a specific taskrun


.SH OPTIONS
.PP
\fB\-\-allow\-missing\-template\-keys\fP[=true]
If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.

.PP
\fB\-h\fP, \fB\-\-help\fP[=false]
help for payload

.PP
\fB\-o\fP, \fB\-\-output\fP=""
Output format. One of: json|yaml|name|go\-template|go\-template\-file|template|templatefile|jsonpath|jsonpath\-as\-json|jsonpath\-file.

.PP
\fB\-\-show\-managed\-fields\fP[=false]
If true, keep the managedFields when printing objects in JSON or YAML format.

.PP
\fB\-S\fP, \fB\-\-skip\-verify\fP[=false]
Skip verifying the payload'signature

.PP
\fB\-\-template\fP=""
Template string or path to template file to use when \-o=go\-template, \-o=go\-template\-file. The template format is golang templates [
\[la]http://golang.org/pkg/text/template/#pkg-overview\[ra]].


.SH OPTIONS INHERITED FROM PARENT COMMANDS
.PP
\fB\-C\fP, \fB\-\-no\-color\fP[=false]
disable coloring (default: false)


.SH SEE ALSO
.PP
\fBtkn\-chains(1)\fP
35 changes: 35 additions & 0 deletions docs/man/man1/tkn-chains-signature.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
.TH "TKN\-CHAINS\-SIGNATURE" "1" "" "Auto generated by spf13/cobra" ""
.nh
.ad l


.SH NAME
.PP
tkn\-chains\-signature \- Print a Tekton chains' signature for a specific taskrun


.SH SYNOPSIS
.PP
\fBtkn chains signature\fP


.SH DESCRIPTION
.PP
Print a Tekton chains' signature for a specific taskrun


.SH OPTIONS
.PP
\fB\-h\fP, \fB\-\-help\fP[=false]
help for signature


.SH OPTIONS INHERITED FROM PARENT COMMANDS
.PP
\fB\-C\fP, \fB\-\-no\-color\fP[=false]
disable coloring (default: false)


.SH SEE ALSO
.PP
\fBtkn\-chains(1)\fP
33 changes: 33 additions & 0 deletions docs/man/man1/tkn-chains.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
.TH "TKN\-CHAINS" "1" "" "Auto generated by spf13/cobra" ""
.nh
.ad l


.SH NAME
.PP
tkn\-chains \- Manage Tekton Chains


.SH SYNOPSIS
.PP
\fBtkn chains\fP


.SH DESCRIPTION
.PP
Manage Tekton Chains


.SH OPTIONS
.PP
\fB\-h\fP, \fB\-\-help\fP[=false]
help for chains

.PP
\fB\-C\fP, \fB\-\-no\-color\fP[=false]
disable coloring (default: false)


.SH SEE ALSO
.PP
\fBtkn(1)\fP, \fBtkn\-chains\-payload(1)\fP, \fBtkn\-chains\-signature(1)\fP
2 changes: 1 addition & 1 deletion docs/man/man1/tkn.1
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ CLI for tekton pipelines

.SH SEE ALSO
.PP
\fBtkn\-bundle(1)\fP, \fBtkn\-clustertask(1)\fP, \fBtkn\-clustertriggerbinding(1)\fP, \fBtkn\-completion(1)\fP, \fBtkn\-condition(1)\fP, \fBtkn\-eventlistener(1)\fP, \fBtkn\-hub(1)\fP, \fBtkn\-pipeline(1)\fP, \fBtkn\-pipelinerun(1)\fP, \fBtkn\-resource(1)\fP, \fBtkn\-task(1)\fP, \fBtkn\-taskrun(1)\fP, \fBtkn\-triggerbinding(1)\fP, \fBtkn\-triggertemplate(1)\fP, \fBtkn\-version(1)\fP
\fBtkn\-bundle(1)\fP, \fBtkn\-chains(1)\fP, \fBtkn\-clustertask(1)\fP, \fBtkn\-clustertriggerbinding(1)\fP, \fBtkn\-completion(1)\fP, \fBtkn\-condition(1)\fP, \fBtkn\-eventlistener(1)\fP, \fBtkn\-hub(1)\fP, \fBtkn\-pipeline(1)\fP, \fBtkn\-pipelinerun(1)\fP, \fBtkn\-resource(1)\fP, \fBtkn\-task(1)\fP, \fBtkn\-taskrun(1)\fP, \fBtkn\-triggerbinding(1)\fP, \fBtkn\-triggertemplate(1)\fP, \fBtkn\-version(1)\fP
27 changes: 26 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,56 @@ go 1.16
require (
github.com/AlecAivazis/survey/v2 v2.2.12
github.com/Netflix/go-expect v0.0.0-20200312175327-da48e75238e2
github.com/armon/go-metrics v0.3.10
github.com/armon/go-radix v1.0.0
github.com/blang/semver v3.5.1+incompatible
github.com/cpuguy83/go-md2man v1.0.10
github.com/docker/cli v20.10.12+incompatible
github.com/docker/docker v20.10.12+incompatible
github.com/fatih/color v1.13.0
github.com/ghodss/yaml v1.0.0
github.com/golang/snappy v0.0.4
github.com/google/go-cmp v0.5.7
github.com/google/go-containerregistry v0.8.1-0.20220216220642-00c59d91847c
github.com/hako/durafmt v0.0.0-20191009132224-3f39dc1ed9f4
github.com/hashicorp/errwrap v1.1.0
github.com/hashicorp/go-hclog v1.0.0
github.com/hashicorp/go-immutable-radix v1.3.1
github.com/hashicorp/go-multierror v1.1.1
github.com/hashicorp/go-plugin v1.4.3
github.com/hashicorp/go-secure-stdlib/mlock v0.1.1
github.com/hashicorp/go-secure-stdlib/strutil v0.1.1
github.com/hashicorp/go-sockaddr v1.0.2
github.com/hashicorp/go-uuid v1.0.2
github.com/hashicorp/go-version v1.3.0
github.com/hashicorp/golang-lru v0.5.4
github.com/hashicorp/hcl v1.0.0
github.com/hashicorp/vault/sdk v0.3.0
github.com/hinshun/vt10x v0.0.0-20180809195222-d55458df857c
github.com/jonboulle/clockwork v0.2.2
github.com/ktr0731/go-fuzzyfinder v0.2.0
github.com/mitchellh/copystructure v1.0.0
github.com/mitchellh/go-homedir v1.1.0
github.com/mitchellh/go-testing-interface v1.0.0
github.com/mitchellh/mapstructure v1.4.3
github.com/pierrec/lz4 v2.6.1+incompatible
github.com/pkg/errors v0.9.1
github.com/spf13/cobra v1.3.0
github.com/spf13/pflag v1.0.5
github.com/tektoncd/chains v0.6.2-0.20211214203153-0c28d2682758
github.com/tektoncd/hub/api v0.0.0-20220128080824-5941f280d06a
github.com/tektoncd/pipeline v0.33.1
github.com/tektoncd/plumbing v0.0.0-20211012143332-c7cc43d9bc0c
github.com/tektoncd/triggers v0.19.0
github.com/tidwall/gjson v1.12.1 // indirect
go.opencensus.io v0.23.0
go.uber.org/atomic v1.9.0
go.uber.org/multierr v1.7.0
go.uber.org/zap v1.19.1
golang.org/x/crypto v0.0.0-20220214200702-86341886e292
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1
google.golang.org/protobuf v1.27.1
gopkg.in/yaml.v2 v2.4.0
gotest.tools v2.2.0+incompatible
gotest.tools/v3 v3.1.0
Expand All @@ -42,10 +67,10 @@ require (
)

replace (
github.com/google/go-containerregistry => github.com/google/go-containerregistry v0.6.0
github.com/kr/pty => github.com/creack/pty v1.1.16
k8s.io/api => k8s.io/api v0.22.5
k8s.io/apimachinery => k8s.io/apimachinery v0.22.5
k8s.io/client-go => k8s.io/client-go v0.22.5
k8s.io/code-generator => k8s.io/code-generator v0.22.5
k8s.io/kube-openapi => k8s.io/kube-openapi v0.0.0-20211109043538-20434351676c
)
Loading