I have a pipeline that references a task:
---
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
name: foo
spec:
tasks:
- name: my-bar-task
taskRef:
name: bar-task
bundle: ...
That task has resources:
---
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: bar-task
spec:
steps:
- name: step-one
resources:
requests:
memory: "1Gi"
cpu: "1"
limits:
memory: "2Gi"
cpu: "1"
I would like to be able to override the resources in the pipeline definition. Something like this:
---
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
name: foo
spec:
tasks:
- name: my-bar-task
taskRef:
name: bar-task
bundle: ...
resources:
requests:
memory: "4Gi"
cpu: "1"
limits:
memory: "5Gi"
cpu: "1"
But when I tried that, the override was ignored. Is what I am trying possible? I know the resources can be overridden from a pipeline run but I am particularly wondering about doing that in a pipeline.