# Reproducer for https://github.com/tektoncd/pipeline/issues/10371
# ("TaskRun hangs until timeout when a step exits 137 without reason=OOMKilled")
# which is fixed by https://github.com/tektoncd/pipeline/pull/10372
#
# How it works
# ------------
# The `oom-step` step is given a very small memory limit and, inside it,
# we immediately fork a burst of processes that each grab a big chunk of
# memory at once (rather than growing usage gradually). Blasting past the
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # ============================================================================= | |
| # tekton-dev.sh — Local Tekton Pipelines dev environment on macOS | |
| # | |
| # Usage: | |
| # ./tekton-dev.sh up — install tools, start colima, create kind cluster, | |
| # install Tekton | |
| # ./tekton-dev.sh run — apply a PipelineRun and wait for it to succeed | |
| # ./tekton-dev.sh down — delete PipelineRun, tear down cluster, stop colima | |
| # ./tekton-dev.sh status — show current state of cluster and Tekton pods |
This file contains hidden or 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
| apiVersion: tekton.dev/v1 | |
| kind: Task | |
| metadata: | |
| name: build-task | |
| spec: | |
| params: | |
| - name: app-name | |
| type: string | |
| default: my-app | |
| results: |
This file contains hidden or 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
| apiVersion: tekton.dev/v1 | |
| kind: Task | |
| metadata: | |
| name: large-result-task | |
| spec: | |
| results: | |
| - name: result1 | |
| - name: result2 | |
| - name: result3 | |
| type: array |
This file contains hidden or 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
| apiVersion: v1 | |
| kind: PersistentVolume | |
| metadata: | |
| name: task-pv-volume | |
| labels: | |
| type: local | |
| spec: | |
| storageClassName: manual | |
| capacity: | |
| storage: 16Mi |
status: proposed title: Refine Retries for TaskRuns and CustomRuns creation-date: '2022-09-08' last-updated: '2022-10-20' authors:
- '@XinruZhang'
- '@pritidesai'
- '@jerop'
- '@lbernick'
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
name: pipelinerun-with-taskspec-to-echo-greetings
spec:
pipelineSpec:
params:
- name: GREETINGS
description: "Greetings, default is Hello World!"
This file contains hidden or 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
| apiVersion: tekton.dev/v1beta1 | |
| kind: PipelineRun | |
| metadata: | |
| generateName: when-expressions- | |
| spec: | |
| pipelineSpec: | |
| tasks: | |
| - name: echo-message-1 | |
| taskSpec: | |
| results: |
This file contains hidden or 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
| apiVersion: tekton.dev/v1beta1 | |
| kind: Pipeline | |
| metadata: | |
| name: pipeline-60 | |
| spec: | |
| tasks: | |
| - name: t1 | |
| taskRef: | |
| name: echo-name | |
| params: |
This file contains hidden or 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
| apiVersion: tekton.dev/v1beta1 | |
| kind: ClusterTask | |
| metadata: | |
| name: result-task | |
| spec: | |
| results: | |
| - name: sampleResult | |
| description: Result | |
| steps: | |
| - name: write-result |
NewerOlder