Skip to content

Commit

Permalink
test and example
Browse files Browse the repository at this point in the history
  • Loading branch information
NikeNano committed Apr 18, 2020
1 parent 32a474f commit d2a6cf5
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/pipelineruns.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Creation of a `PipelineRun` will trigger the creation of
- [Params](#params)
- [Service Account](#service-account)
- [Service Accounts](#service-accounts)
- [Task spec](#task-spec)
- [TaskRunSpecs](#task-run-specs)
- [Pod Template](#pod-template)
- [PersistentVolumeClaims](#persistentvolumeclaims)
- [Workspaces](#workspaces)
Expand Down Expand Up @@ -359,7 +359,7 @@ Except as otherwise noted, the content of this page is licensed under the
and code samples are licensed under the
[Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0).

## Task spec
## Task Run Specs

Specifies a list of ```ServiceAccount``` ,```PodTemplate``` and ```PipelineTask```. A specified PipelineTask will be run with the configured ```ServiceAccount``` and ```PodTemplate``` overwriting the [`serviceAccountName`](#service-account) and [`podTemplate`](#pod-template) configuration, for example:

Expand All @@ -368,7 +368,7 @@ spec:
podTemplate:
securityContext:
runAsNonRoot: true
taskSpec:
taskRunSpecs:
- taskName: build-task
runAsNonRoot: false
serviceAccountName: sa-for-build
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ spec:
pipelineRef:
name: demo-pipeline
serviceAccountName: 'default'
taskSpec:
taskRunSpecs:
- PipelineTaskName: skaffold-unit-tests
TaskServiceAccountName: "TaskOne"
- PipelineTaskName: build-skaffold-web
Expand Down
2 changes: 0 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ go 1.13

require (
cloud.google.com/go v0.47.0 // indirect
cloud.google.com/go/storage v1.0.0
contrib.go.opencensus.io/exporter/stackdriver v0.12.8 // indirect
github.com/GoogleCloudPlatform/cloud-builders/gcs-fetcher v0.0.0-20191203181535-308b93ad1f39
github.com/cloudevents/sdk-go/v2 v2.0.0-preview8
Expand Down Expand Up @@ -41,7 +40,6 @@ require (
golang.org/x/time v0.0.0-20191024005414-555d28b269f0 // indirect
golang.org/x/tools v0.0.0-20200214144324-88be01311a71 // indirect
gomodules.xyz/jsonpatch/v2 v2.1.0
google.golang.org/api v0.15.0
google.golang.org/appengine v1.6.5 // indirect
k8s.io/api v0.17.3
k8s.io/apiextensions-apiserver v0.17.3 // indirect
Expand Down
28 changes: 28 additions & 0 deletions pkg/apis/pipeline/v1alpha1/zz_generated.deepcopy.go

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

28 changes: 28 additions & 0 deletions pkg/apis/pipeline/v1beta1/zz_generated.deepcopy.go

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

0 comments on commit d2a6cf5

Please sign in to comment.