Repository navigation
fix: remove Tekton Alpha API override fields - #1736
jenkins-x-bot merged 2 commits into
Conversation
|
/cc @msvticket |
| DefaultMaxMatrixCombinationsCount: config.DefaultMaxMatrixCombinationsCount, | ||
| }, | ||
| FeatureFlags: featureFlags, | ||
| } |
There was a problem hiding this comment.
Looking at the commit message it seems like the enableAlphaAPIFields function was introduced just to make the uses-steps-with-sidecar-ws test go through. For me make tests succeeds after removing the call to enableAlphaAPIFields, so I think you can remove it.
In runtime it shouldn't be needed since the enable-api-fields: alpha is set in the tekton-pipeline chart: https://github.com/jenkins-x/jx3-versions/blob/master/charts/cdf/tekton-pipeline/values.yaml.gotmpl
And I actually don't think enable-api-fields: alpha is something we make use of now anyway.
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues block the change to use Tekton’s default matrix combination limit.
No open issues 🎉
What changed in this PR
This PR fixes matrix validation for in-repository pipelines by using Tekton’s default limit of 256 matrix combinations instead of an implicit zero.
Changes:
- Initialize the matrix combination limit in the PipelineRun validation context.
- Add regression fixtures covering matrix fan-out over an array result with task steps loaded through
uses:.
| File | Description |
|---|---|
pkg/triggerconfig/inrepo/test_data/load_pipelinerun/pipeline-matrix/source.yaml |
Defines the matrix fan-out regression input. |
pkg/triggerconfig/inrepo/test_data/load_pipelinerun/pipeline-matrix/README.md |
Documents the fixture’s purpose. |
pkg/triggerconfig/inrepo/test_data/load_pipelinerun/pipeline-matrix/expected.yaml |
Records the expected expanded PipelineRun. |
pkg/triggerconfig/inrepo/test_data/load_pipelinerun/pipeline-matrix/build-task.yaml |
Supplies the task steps imported through uses:. |
pkg/triggerconfig/inrepo/default_parameters.go |
Sets Tekton’s default matrix combination limit for validation. |
Review effort: Balanced
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: msvticket The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Failed to merge this PR at Tue, 01 Dec 2026 09:38:26 UTC due to:
|
Changelog
enableAlphaAPIFieldsfunctionpipeline-matrixcase toTestLoadPipelineRunTest: a task fanned out withmatrixover another task's array result, with steps fromuses:.Context
We have a use case for using Tekton
matrixto fan out tasks, I've tried running it but hit validation errors withjx pipeline effectivewhich would then also occur in Lighthouse. Our pipeline has amatrixover another task's array result. The newpipeline-matrixtest is a minimal reproduction.The validation context built a config.Defaults with only DefaultTimeoutMinutes, so the max matrix combinations count was 0 and any matrix failed validation.
Rather than patching that config, this removes it. Without a config in the context Tekton falls back to its own defaults (enable-api-fields: beta, max matrix combinations 256), so this validation can't drift from Tekton again.
Testing
Test result pre-config change:
Test result post-config change: