Skip to content

Conversation

ghost
Copy link

@ghost ghost commented Mar 14, 2020

Changes

There's been a bit of feedback since workspaces were released that
having their documentation spread across tasks.md, taskruns.md,
pipelines.md, and pipelineruns.md made understanding the feature harder.
Having the information organized this way also makes maintenance more
difficult, particularly of those sections which are duplicated across
multiple files.

This PR adds a new doc, workspaces.md, that consolidates all of the
information about workspaces. This doc is then linked to from each of
the individual CRD docs mentioned above which are also updated to
include a very short description of the need for workspaces and a short
example YAML.

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

Release Notes

Instructions on using workspaces has been consolidated into a single doc to make browsing the information easier.

@ghost ghost added kind/documentation Categorizes issue or PR as related to documentation. needs-cherry-pick Indicates a PR needs to be cherry-pick to a release branch labels Mar 14, 2020
@googlebot googlebot added the cla: yes Trying to make the CLA bot happy with ppl from different companies work on one commit label Mar 14, 2020
@tekton-robot tekton-robot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Mar 14, 2020
@ghost ghost requested a review from tualeron March 14, 2020 13:01
@tekton-robot tekton-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Mar 14, 2020
secretName: my-secret
```
Tekton supports several different kinds of `Volume` in `Workspaces`. For a list of
the different kinds see the section of `workspaces.md` on
Copy link
Member

@pritidesai pritidesai Mar 16, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: backtick around workspaces.md looks odd, make it a link? workspaces

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leave out the workspaces.md filename and avoid repetition. Just say "For more information, see VolumeSources....

docs/taskruns.md Outdated
secretName: my-secret
```
Tekton supports several different kinds of `Volume` in `Workspaces`. For a list of
the different kinds see the section of `workspaces.md` on
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: same as above, backtick around workspaces.md looks odd

@@ -0,0 +1,336 @@
# Workspaces

- [Workspaces](#workspaces)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: missing TOC

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch, thanks, generated a new TOC.

## Examples

- [TaskRun example](../examples/v1beta1/taskruns/workspace.yaml)
- [PipelineRun example](../examples/v1beta1/pipelineruns/workspace.yaml)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the link results in 404, it should be PipelineRun example

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PipelineRuns example is named ../examples/v1beta1/pipelineruns/workspaces.yaml instead of ../examples/v1beta1/pipelineruns/workspace.yaml

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the sake of expediency, I'll do an editorial pass on this new doc once you merge the PR. LGTM for now.

@pritidesai
Copy link
Member

thanks @sbwsg, couple of minor nits, and one example link is broken, otherwise
/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 16, 2020
@tualeron
Copy link
Contributor

tualeron commented Mar 16, 2020 via email

docs/taskruns.md Outdated
secretName: my-secret
```
Tekton supports several different kinds of `Volume` in `Workspaces`. For a list of
the different kinds see the section of `workspaces.md` on
Copy link
Contributor

@tualeron tualeron Mar 16, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leave out the workspaces.md filename and avoid repetition. Just say "For more information, see VolumeSources....

Copy link
Contributor

@tualeron tualeron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the sake of expediency, I'll do an editorial pass on this new doc once you merge this PR. LGTM for now.

There's been a bit of feedback since workspaces were released that
having their documentation spread across tasks.md, taskruns.md,
pipelines.md, and pipelineruns.md made understanding the feature harder.
Having the information organized this way also makes maintenance more
difficult, particularly of those sections which are duplicated across
multiple files.

This PR adds a new doc, workspaces.md, that consolidates all of the
information about workspaces. This doc is then linked to from each of
the individual CRD docs mentioned above.
@tekton-robot tekton-robot removed the lgtm Indicates that a PR is ready to be merged. label Mar 16, 2020
@ghost
Copy link
Author

ghost commented Mar 16, 2020

/test pull-tekton-pipeline-build-tests

1 similar comment
@ghost
Copy link
Author

ghost commented Mar 16, 2020

/test pull-tekton-pipeline-build-tests

@pritidesai
Copy link
Member

thanks for updates @sbwsg
/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 16, 2020
Copy link
Member

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/meow

@tekton-robot
Copy link
Collaborator

@vdemeester: cat image

In response to this:

/meow

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sergetron, vdemeester

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 17, 2020
@tekton-robot tekton-robot merged commit 3588a14 into tektoncd:master Mar 17, 2020
@ghost ghost removed the needs-cherry-pick Indicates a PR needs to be cherry-pick to a release branch label Mar 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Trying to make the CLA bot happy with ppl from different companies work on one commit kind/documentation Categorizes issue or PR as related to documentation. lgtm Indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants