Skip to content

Commit

Permalink
# This is a combination of 8 commits.
Browse files Browse the repository at this point in the history
# This is the 1st commit message:

change emitting results

# This is the commit message #2:

fix code

# This is the commit message #3:

A few minor cleanups in pkg/reconciler/pipelinerun/pipelinerun_test.go

These just mildly annoyed me, so I thought I'd clean them up.

Signed-off-by: Andrew Bayer <[email protected]>

# This is the commit message #4:

Instrument e2e pipelinerun_test.go files for logstream

These two (`test/pipelinerun_test.go` and `test/v1alpha1/pipelinerun_test.go`)
weren't done in the last PR, because they were messy and I wanted to get that PR
in. But I had some time this morning, so here they are, which should be the last
things in the e2e tests (other than examples/yamls testing, which are their own
bucket of worms) to be instrumented with `helpers.ObjectNameForTest(t)`.

Signed-off-by: Andrew Bayer <[email protected]>

# This is the commit message #5:

Update tutorial links

We recently updated the introductory tutorial on the documnentation
website. That tutorial covers the same content as the one here. To avoid
duplicated efforts and content drift, I'm linkin that doc here and
replacing the existing content.

Additionally, this removes references to `PipelineResources`.

# This is the commit message #6:

Set git-clone tasks in examples to run as root

Similar to tektoncd@ba2e7f3 -
with tektoncd#4758, `git-init` now uses `ghcr.io/distroless/git` as
its base image, and that image needs to run as root. `git-init` by default does _not_ run as root.
So the two examples using copy-pasted old versions of the `git-clone` catalog task need to be
changed to run as root, or the example tests will keep failing forever.

An equivalent change will be needed in the `git-clone` catalog task once it's bumped to using
`git-init:v0.35.0` or later - currently, it's using `v0.29.0`.

Signed-off-by: Andrew Bayer <[email protected]>

# This is the commit message #7:

adding latest release - 0.35

Updating the table to include the latest release links.

# This is the commit message #8:

Added a unit test for pod status.

Add unit test with large result for setTaskRunStatusBasedOnStepStatus.
  • Loading branch information
Yongxuanzhang committed May 2, 2022
1 parent 80d7fe8 commit e7a36b3
Show file tree
Hide file tree
Showing 24 changed files with 370 additions and 857 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Tekton Pipelines are **Typed**:
## Want to start using Pipelines

- [Installing Tekton Pipelines](docs/install.md)
- Jump in with [the tutorial!](docs/tutorial.md)
- Jump in with [the "Getting started" tutorial!](https://tekton.dev/docs/getting-started/tasks/)
- Take a look at our [roadmap](roadmap.md)

### Required Kubernetes Version
Expand All @@ -42,6 +42,7 @@ Tekton Pipelines are **Typed**:
| Version | Docs | Examples |
|------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------|
| [HEAD](DEVELOPMENT.md#install-pipeline) | [Docs @ HEAD](/docs/README.md) | [Examples @ HEAD](/examples) |
| [v0.35.0](https://github.com/tektoncd/pipeline/releases/tag/v0.35.0) | [Docs @ v0.35.0](https://github.com/tektoncd/pipeline/tree/v0.35.0/docs#tekton-pipelines) | [Examples @ v0.35.0](https://github.com/tektoncd/pipeline/tree/v0.35.0/examples#examples) |
| [v0.34.1](https://github.com/tektoncd/pipeline/releases/tag/v0.34.1) | [Docs @ v0.34.1](https://github.com/tektoncd/pipeline/tree/v0.34.1/docs#tekton-pipelines) | [Examples @ v0.34.1](https://github.com/tektoncd/pipeline/tree/v0.34.1/examples#examples) |
| [v0.34.0](https://github.com/tektoncd/pipeline/releases/tag/v0.34.0) | [Docs @ v0.34.0](https://github.com/tektoncd/pipeline/tree/v0.34.0/docs#tekton-pipelines) | [Examples @ v0.34.0](https://github.com/tektoncd/pipeline/tree/v0.34.0/examples#examples) |
| [v0.33.4](https://github.com/tektoncd/pipeline/releases/tag/v0.33.4) | [Docs @ v0.33.4](https://github.com/tektoncd/pipeline/tree/v0.33.4/docs#tekton-pipelines) | [Examples @ v0.33.4](https://github.com/tektoncd/pipeline/tree/v0.33.4/examples#examples) |
Expand Down
4 changes: 2 additions & 2 deletions cmd/git-init/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ func main() {
output := []v1beta1.PipelineResourceResult{
{
Key: "commit",
Value: commit,
Value: *v1beta1.NewArrayOrString(commit),
ResourceRef: &v1beta1.PipelineResourceRef{
Name: resourceName,
},
ResourceName: resourceName,
},
{
Key: "url",
Value: fetchSpec.URL,
Value: *v1beta1.NewArrayOrString(fetchSpec.URL),
ResourceRef: &v1beta1.PipelineResourceRef{
Name: resourceName,
},
Expand Down
4 changes: 2 additions & 2 deletions cmd/imagedigestexporter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ func main() {
}
output = append(output, v1beta1.PipelineResourceResult{
Key: "digest",
Value: digest.String(),
Value: *v1beta1.NewArrayOrString(digest.String()),
ResourceName: imageResource.Name,
ResourceRef: &v1beta1.PipelineResourceRef{
Name: imageResource.Name,
},
})
output = append(output, v1beta1.PipelineResourceResult{
Key: "url",
Value: imageResource.URL,
Value: *v1beta1.NewArrayOrString(imageResource.URL),
ResourceName: imageResource.Name,
ResourceRef: &v1beta1.PipelineResourceRef{
Name: imageResource.Name,
Expand Down
Loading

0 comments on commit e7a36b3

Please sign in to comment.