forked from tektoncd/pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make results folder writable (Fix for tektoncd#2131)
- Loading branch information
Showing
8 changed files
with
257 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
apiVersion: tekton.dev/v1alpha1 | ||
kind: Pipeline | ||
metadata: | ||
name: sum-and-multiply-pipeline-user | ||
spec: | ||
params: | ||
- name: a | ||
type: string | ||
default: "1" | ||
- name: b | ||
type: string | ||
default: "1" | ||
tasks: | ||
- name: sum-inputs | ||
taskRef: | ||
name: sum-user | ||
params: | ||
- name: a | ||
value: "$(params.a)" | ||
- name: b | ||
value: "$(params.b)" | ||
- name: multiply-inputs | ||
taskRef: | ||
name: multiply-user | ||
params: | ||
- name: a | ||
value: "$(params.a)" | ||
- name: b | ||
value: "$(params.b)" | ||
- name: sum-and-multiply | ||
taskRef: | ||
name: sum-user | ||
params: | ||
- name: a | ||
value: "$(tasks.multiply-inputs.results.product)$(tasks.sum-inputs.results.sum)" | ||
- name: b | ||
value: "$(tasks.multiply-inputs.results.product)$(tasks.sum-inputs.results.sum)" | ||
--- | ||
apiVersion: tekton.dev/v1alpha1 | ||
kind: Task | ||
metadata: | ||
name: sum-user | ||
annotations: | ||
description: | | ||
A simple task that sums the two provided integers | ||
spec: | ||
inputs: | ||
params: | ||
- name: a | ||
type: string | ||
default: "1" | ||
description: The first integer | ||
- name: b | ||
type: string | ||
default: "1" | ||
description: The second integer | ||
results: | ||
- name: sum | ||
description: The sum of the two provided integers | ||
steps: | ||
- name: sum | ||
image: bash:latest | ||
script: | | ||
#!/usr/bin/env bash | ||
echo -n $(( "$(inputs.params.a)" + "$(inputs.params.b)" )) | tee $(results.sum.path) | ||
securityContext: | ||
runAsUser: 1000 | ||
--- | ||
apiVersion: tekton.dev/v1alpha1 | ||
kind: Task | ||
metadata: | ||
name: multiply-user | ||
annotations: | ||
description: | | ||
A simple task that multiplies the two provided integers | ||
spec: | ||
inputs: | ||
params: | ||
- name: a | ||
type: string | ||
default: "1" | ||
description: The first integer | ||
- name: b | ||
type: string | ||
default: "1" | ||
description: The second integer | ||
results: | ||
- name: product | ||
description: The product of the two provided integers | ||
steps: | ||
- name: product | ||
image: bash:latest | ||
script: | | ||
#!/usr/bin/env bash | ||
echo -n $(( "$(inputs.params.a)" * "$(inputs.params.b)" )) | tee $(results.product.path) | ||
securityContext: | ||
runAsUser: 1000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.