Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
avoid setting activeDeadlineSeconds for notimeouts
PR tektoncd#4217 introduced better handline of the resource quota by adding support for activeDeadlineSeconds. activeDeadlineSeconds is calculated based on this formula: int64(taskRun.GetTimeout(ctx).Seconds() * 1.5) In case when a timeout on a task is set to 0s i.e. no timeout, the taskrun fails with ambiguous message "Invalid value: 0: must be between 1 and 2147483647, inclusive." This is happening because activeDeadlineSeconds is getting set to 0 in case of a 0s timeout but in this case activeDeadlineSeconds is getting set to a value out of the permitted range. This commit is changing the way activeDeadlineSeconds is set such that its not set at all for a task with 0s timeout.
- Loading branch information