Skip to content

Commit 50f1cc6

Browse files
fullsend-ai-coder[bot]claude
authored andcommitted
docs: add Tekton step-count and resource optimization guidance
Add a Resource optimization subsection to .cursor/rules/tekton.mdc to help review and code agents suggest step consolidation. Tekton computes pod resource requirements as the sum of all step requests, so minimizing step count reduces scheduling overhead. Closes #3675 Assisted-by: Claude Opus 4.6 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: fullsend-code <278716306+fullsend-ai-coder[bot]@users.noreply.github.com>
1 parent 7220de0 commit 50f1cc6

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.cursor/rules/tekton.mdc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ description: Rules how to write great tekton tasks and pipelines
1515
### Security
1616
- never use tekton parameters as "$(params.*)" directly in the script, make tekton env variable first in tekton task definition and use env variable in the script
1717

18+
### Resource optimization
19+
- Tekton computes pod resource requirements as the sum of all step resource requests, not the maximum — minimize step count to reduce scheduling overhead in resource-constrained clusters
20+
- consolidate steps that share the same base image and run sequentially, especially lightweight post-processing steps such as result reporting or artifact uploading
21+
- when a step only writes a Tekton result value (e.g. `$(results.*.path)`), merge it into the preceding step rather than running a separate container
22+
1823
## Script
1924
- if a user hasn't specified otherwise, default script language is bash
2025
- add the shebang of the script language to the script

0 commit comments

Comments
 (0)