Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix conversion of non-object results declared in Tasks
Prior to this commit, conversion between v1beta1 and v1 Tasks would create an empty map for task.spec.results.properties, even if the Task result was not an object result. Currently, if Task result properties are a nil map, the result is treated as a string result. If Task result properties are an empty map, the result is treated as an object result. This commit only updates the conversion logic of Task results to match the conversion logic of task params; it creates a non-nil Properties map only if Properties was already non-nil. Addressing the differences in how nil vs empty Properties are treated will be handled in a separate commit.
- Loading branch information