Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TEP-0007: Conditions Beta Skipping - WhenSkipped #246

Merged
merged 1 commit into from
Nov 3, 2020

Conversation

jerop
Copy link
Member

@jerop jerop commented Nov 2, 2020

Previously, we'd proposed to adding continueAfterSkip field which
defaults to false and can be set to true to execute ordering-dependent
tasks

We want to update that proposal because:

  • using string aliases instead of booleans is preferable because,
    as described in the Kubernetes API policy, "Think twice about bool
    fields. Many ideas start as boolean but eventually trend towards a
    small set of mutually exclusive options. Plan for future expansions by
    describing the policy options explicitly as a string type alias.
    "
  • that naming was misleading

So, we propose using a whenSkipped field which defaults to skipBranch
and users can set to runBranch to execute its branch that's made up of
ordering-dependent tasks only

Further discussed in tektoncd/pipeline#3176

/cc @pritidesai @bobcatfish
/kind tep

@tekton-robot tekton-robot added kind/tep Categorizes issue or PR as related to a TEP (or needs a TEP). size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Nov 2, 2020
@jerop jerop force-pushed the when-skipped branch 2 times, most recently from 85b385a to c10e28b Compare November 2, 2020 21:17
@jerop jerop changed the title TEP 0007: Conditions Beta Skipping TEP-0007: Conditions Beta Skipping Nov 2, 2020
@jerop
Copy link
Member Author

jerop commented Nov 2, 2020

/cc @skaegi (thought you may be interested)

Copy link
Contributor

@bobcatfish bobcatfish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

teps/0007-conditions-beta.md Outdated Show resolved Hide resolved
@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 2, 2020
Previously, we'd proposed to adding `continueAfterSkip` field which
defaults to false and can be set to true to execute ordering-dependent
tasks

We want to update that proposal because:
- using string aliases instead of booleans is preferable because,
as described in the Kubernetes API policy, "Think twice about bool
fields. Many ideas start as boolean but eventually trend towards a
small set of mutually exclusive options. Plan for future expansions by
describing the policy options explicitly as a string type alias"
- that naming was misleading

So, we propose using a `whenSkipped` field which defaults to `skipBranch`
and users can set to `runBranch` to execute its branch that's made up of
ordering-dependent tasks only

Further discussed in tektoncd/pipeline#3176
@tekton-robot tekton-robot removed the lgtm Indicates that a PR is ready to be merged. label Nov 2, 2020
@bobcatfish
Copy link
Contributor

Gonna give it an approve:

/approve

But leave it to @pritidesai and others to lgtm - also if anyone has different naming ideas for these vals please share!!

@tekton-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bobcatfish

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 2, 2020
@pritidesai
Copy link
Member

yup looks good, thanks @jerop
/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 3, 2020
@tekton-robot tekton-robot merged commit dddecbd into tektoncd:master Nov 3, 2020
@jerop jerop changed the title TEP-0007: Conditions Beta Skipping TEP-0007: Conditions Beta Skipping - WhenSkipped Mar 24, 2021
@jerop jerop deleted the when-skipped branch January 6, 2022 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/tep Categorizes issue or PR as related to a TEP (or needs a TEP). lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
Status: Implemented
Development

Successfully merging this pull request may close these issues.

4 participants