Tasks are failing when "init" is the first argument followed by two or more other arguments. #5080
Labels
kind/bug
Categorizes issue or PR as related to a bug.
priority/critical-urgent
Highest priority. Must be actively worked on as someone's top priority right now.
Expected Behavior
Given the following task
The following command should work:
Actual Behavior
It fails as written above
Steps to Reproduce the Problem
tkn
commandsAdditional Info
This affect any Pipeline release that contains the follow change :
#4826. This means it affects 0.32 to 0.37 and the fix should be backport in all.
The main reason why it fails is the way the
entrypoint
binary is written and the wayflag
acts. To simplify a tiny bit, the command created on a task looks like/ko-app/entrypoint --entrypoint echo -- command and args here
(with a bunch of flags before--
ommited here). With the above example, it becomes/ko-app/entrypoint --entrypoint echo -- init foo bar
. Theflag
package, in that particular case ignores the--
and tells the rest of the code that the arguments areinit foo bar
, which is similar to/ko-app/entrypoint --entrypoint echo init foo bar
. And this, in terms, goes into theinit
subcommand./assign
/priority critical-urgent
The text was updated successfully, but these errors were encountered: