-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Conditionals: Configure what happens when a task is skipped due to condition failure #1023
Comments
ref: #1137 |
One thought after looking at #1137 :
|
From @afrittoli in #1264:
|
I'm not sure we have a good solution for this case specifically. I've been trying to build a pipeline that builds a docker image only if needed - which I encoded in a condition. The build task has the condition attached and the next Task deploys a cloud function that uses that image plus some code on top. |
/kind feature |
The proposal in #1684 has a solution to this using the
|
What happens though in this use case? Is
What I want to say is that a runOn: ["skip"] would cover more cases than an |
Adds support for a condition that will look for a secret. This is integrated with the pipeline to skip the scan-image step if sysdig secret isn't there, unfortunately optional steps are not supported yet in Tekton so the whole rest of the pipeline will fail if there is no secret per here: tektoncd/pipeline#1023
Rotten issues close after 30d of inactivity. /close Send feedback to tektoncd/plumbing. |
@tekton-robot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/reopen /assign jerop @jerop is actually taking care of this via https://github.com/tektoncd/community/blob/master/teps/0007-conditions-beta.md#skipping-1 |
@bobcatfish: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Stale issues rot after 30d of inactivity. /lifecycle rotten Send feedback to tektoncd/plumbing. |
open pr: #3176 /remove-lifecycle rotten |
@jerop I really could use the feature you implemented in the PR. is there any ETA when this will be merged? My use case:
|
@Bl4d3s we paused that work for a bit as we discussed some design choices and alternatives in #3345 -- rebasing the pr now |
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
Stale issues rot after 30d of inactivity. /lifecycle rotten Send feedback to tektoncd/plumbing. |
Rotten issues close after 30d of inactivity. /close Send feedback to tektoncd/plumbing. |
@tekton-robot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Expected Behavior
Users can decide to either run or skip tasks that are dependent on the task that was skipped due to a condition check failure.
Actual Behavior
Tasks that are dependent on a skipped task are always skipped
Steps to Reproduce the Problem
Additional Info
The text was updated successfully, but these errors were encountered: