Add build timeout, by setting ActiveDeadlineSeconds on a build pod
@@ -42,6 +42,11 @@ type BuildSpec struct {
// Compute resource requirements to execute the build
Resources kapi.ResourceRequirements `json:"resources,omitempty" description:"the desired compute resources the build should have"`
+
+ // Optional duration in seconds, counted from the time when a build pod gets
+ // scheduled in the system, that the build may be active on a node before the
+ // system actively tries to terminate the build; value must be positive integer
+ CompletionDeadlineSeconds *int64 `json:"completionDeadlineSeconds,omitempty" description:"optional duration in seconds the build may be active on a node before the system will actively try to mark it failed and kill associated containers; value must be a positive integer"`
}
// BuildStatus contains the status of a build
