Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stamper: preserve empty array when stamping (#993)
when performing the recursive evaluation of the objects we stamp when using `spec.template: {...}`, we used to always have a nil var that would be instantiated when appending to it, but given that with 0-sized slices we wouldn't get into the loop and thus never initialize, we'd effectively always be transformating `[]` into `nil`. `[]` -> `nil` is problematic specially when using `Runnable` with Tekton as parameters that should be of type `array` but are initialized with `[]` from the Runnable side would end up being transformed into `nil` which is badly handled by tekton (it transforms `nil` -> `""`, which goes against the validation of a task that expects an array) Signed-off-by: Ciro S. Costa <[email protected]>
- Loading branch information