Skip to content

Instantly share code, notes, and snippets.

View pritidesai's full-sized avatar
🥂

Priti Desai pritidesai

🥂
View GitHub Profile
# 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
#!/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
apiVersion: tekton.dev/v1
kind: Task
metadata:
name: build-task
spec:
params:
- name: app-name
type: string
default: my-app
results:
apiVersion: tekton.dev/v1
kind: Task
metadata:
name: large-result-task
spec:
results:
- name: result1
- name: result2
- name: result3
type: array
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!"
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
generateName: when-expressions-
spec:
pipelineSpec:
tasks:
- name: echo-message-1
taskSpec:
results:
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
name: pipeline-60
spec:
tasks:
- name: t1
taskRef:
name: echo-name
params:
apiVersion: tekton.dev/v1beta1
kind: ClusterTask
metadata:
name: result-task
spec:
results:
- name: sampleResult
description: Result
steps:
- name: write-result