-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to safely use array results as input parameters for other tasks #7392
Comments
/assign |
@Yongxuanzhang It seems that toggling this feature(#6816) does not solve my problem? I am using Tekton Pipeline v0.53.2 and have modified the feature flag enable-api-fields: alpha, but the problem persists. |
Sorry I was on vocation last week. Will take a look now! |
Hi, I think the bug is fixed, please let me know if there are any other issues |
Very well, I’ll come back to report if I encounter others. 😆 |
Thanks!! |
Expected Behavior
I can safely apply array results as parameters to the task, just like the usual array parameters.
When I quote the results of other tasks, I cannot ensure that the arrays in their results are definitely non-empty.
This
PipelineRun
can be executed successfully.The
arrayVal1
parameter in the first task is an empty array, see iftask-1
can be successfully executed.I have specified the result of
task-1
as an empty array, it cannot be used as a parameter fortask-2
.Although they are both empty arrays, their behaviors are completely different. I expect them to act consistently and all be able to successfully execute.
Actual Behavior
The pipelinerun encountered an error when executing the second task.
Encountered an error.
PipelineRun YAML:
Steps to Reproduce the Problem
Additional Info
Kubernetes version:
Output of
kubectl version
:I’ve also read the documentation, is this possibly what you anticipated?
The text was updated successfully, but these errors were encountered: