Skip to content

Deprecate Conditions CRD #3377

@jerop

Description

@jerop

With the implementation of Conditions Beta, specifically WhenExpressions, we want to deprecate the Conditions CRD because:

  • Efficiency: Conditions have to spin up new Pods for every check, even simple ones. WhenExpressions enable guarding Tasks with simple checks without spinning up new Pods. Read more.
  • Simplicity: Conditions actually manifested themselves as Tasks. In more complex use cases, we can use Tasks themselves to produce Results that can be used to specify WhenExpressions in subsequent Tasks. Read more.
  • Flexibility: When Conditions evaluated to False and the associated Task was skipped, the subsequent Tasks were skipped as well. Tasks guarded by WhenExpressions support passing in a field -continueAfterSkip - that enables ordering-dependent Tasks to execute when it is set to True. Read more.
  • Status: It is difficult to distinguish Conditions causing a Task to be skipped or the Task failing for other reasons. When WhenExpressions evaluate to false, the associated Task is listed in a Skipped Tasks section of the status alongside the resolved WhenExpressions. If they evaluate to True, the resolved WhenExpressions are listed alongside the TaskRun status. Read more.

Conditions CRD has been listed in the deprecations table since the release of v0.16.0.

This is a milestone for release of Pipelines v1beta2.

cc @bobcatfish

Metadata

Metadata

Assignees

Labels

area/roadmapIssues that are part of the project (or organization) roadmap (usually an epic)kind/cleanupCategorizes issue or PR as related to cleaning up code, process, or technical debt.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions