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

FR: Allow pipeline resources to be declared as optional #1710

Closed
pritidesai opened this issue Dec 9, 2019 · 2 comments · Fixed by #1910
Closed

FR: Allow pipeline resources to be declared as optional #1710

pritidesai opened this issue Dec 9, 2019 · 2 comments · Fixed by #1910
Assignees
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@pritidesai
Copy link
Member

Expected Behavior

We have an issue (#812) and PR (#1601) to allow Task authors to declare resources as optional. We need the same support for Pipeline authors.

Actual Behavior

Resources can not be declared as optional in a Pipeline.

@pritidesai
Copy link
Member Author

/assign pritidesai

@vdemeester
Copy link
Member

/kind feature

@tekton-robot tekton-robot added the kind/feature Categorizes issue or PR as related to a new feature. label Dec 10, 2019
@ghost ghost mentioned this issue Dec 10, 2019
pritidesai added a commit to pritidesai/pipeline that referenced this issue Dec 19, 2019
Pipeline inputs and outputs are considered required, there is no way
today to mark them optional. This change introduced a new field called
optional as part of the PipelineTaskInputResource and PipelineTaskOutputResource
by default a resource is required. To mark any resource optional, set optional to true:

apiVersion: tekton.dev/v1alpha1
kind: Pipeline
metadata:
 name: pipeline-build-image
spec:
 inputs:
   resources:
     - name: workspace
       type: git
       optional: true
 tasks:
   - name: check-workspace

Closes tektoncd#1710
pritidesai added a commit to pritidesai/pipeline that referenced this issue Dec 19, 2019
Pipeline inputs and outputs are considered required, there is no way
today to mark them optional. This change introduced a new field called
optional as part of the PipelineTaskInputResource and PipelineTaskOutputResource
by default a resource is required. To mark any resource optional, set optional to true:

apiVersion: tekton.dev/v1alpha1
kind: Pipeline
metadata:
 name: pipeline-build-image
spec:
 inputs:
   resources:
     - name: workspace
       type: git
       optional: true
 tasks:
   - name: check-workspace

Closes tektoncd#1710
pritidesai added a commit to pritidesai/pipeline that referenced this issue Dec 19, 2019
Pipeline inputs and outputs are considered required, there is no way
today to mark them optional. This change introduced a new field called
optional as part of the PipelineTaskInputResource and PipelineTaskOutputResource
by default a resource is required. To mark any resource optional, set optional to true:

apiVersion: tekton.dev/v1alpha1
kind: Pipeline
metadata:
 name: pipeline-build-image
spec:
 inputs:
   resources:
     - name: workspace
       type: git
       optional: true
 tasks:
   - name: check-workspace

Closes tektoncd#1710
pritidesai added a commit to pritidesai/pipeline that referenced this issue Dec 19, 2019
Pipeline inputs and outputs are considered required, there is no way
today to mark them optional. This change introduced a new field called
optional as part of the PipelineTaskInputResource and PipelineTaskOutputResource
by default a resource is required. To mark any resource optional, set optional to true:

apiVersion: tekton.dev/v1alpha1
kind: Pipeline
metadata:
 name: pipeline-build-image
spec:
 inputs:
   resources:
     - name: workspace
       type: git
       optional: true
 tasks:
   - name: check-workspace

Closes tektoncd#1710
pritidesai added a commit to pritidesai/pipeline that referenced this issue Dec 19, 2019
Pipeline inputs and outputs are considered required, there is no way
today to mark them optional. This change introduced a new field called
optional as part of the PipelineTaskInputResource and PipelineTaskOutputResource
by default a resource is required. To mark any resource optional, set optional to true:

apiVersion: tekton.dev/v1alpha1
kind: Pipeline
metadata:
 name: pipeline-build-image
spec:
 inputs:
   resources:
     - name: workspace
       type: git
       optional: true
 tasks:
   - name: check-workspace

Closes tektoncd#1710
pritidesai added a commit to pritidesai/pipeline that referenced this issue Jan 6, 2020
Pipeline inputs and outputs are considered required, there is no way
today to mark them optional. This change introduces a new field called
optional as part of the PipelineTaskInputResource and PipelineTaskOutputResource
by default a resource is required. To mark any resource optional, set optional to true:

apiVersion: tekton.dev/v1alpha1
kind: Pipeline
metadata:
 name: pipeline-build-image
spec:
 inputs:
   resources:
     - name: workspace
       type: git
       optional: true
 tasks:
   - name: check-workspace

Closes tektoncd#1710
pritidesai added a commit to pritidesai/pipeline that referenced this issue Jan 15, 2020
Pipeline inputs and outputs are considered required, there is no way
today to mark them optional. This change introduces a new field called
optional as part of the PipelineTaskInputResource and PipelineTaskOutputResource
by default a resource is required. To mark any resource optional, set optional to true:

apiVersion: tekton.dev/v1alpha1
kind: Pipeline
metadata:
 name: pipeline-build-image
spec:
 inputs:
   resources:
     - name: workspace
       type: git
       optional: true
 tasks:
   - name: check-workspace

Closes tektoncd#1710
pritidesai added a commit to pritidesai/pipeline that referenced this issue Jan 21, 2020
Pipeline inputs and outputs are considered required, there is no way
today to mark them optional. This change introduces a new field called
optional as part of the PipelineDeclaredResource similar to previous PR tektoncd#1601,
by default optional is set to false and a resource is required.
To mark any resource optional, set optional to true:

apiVersion: tekton.dev/v1alpha1
kind: Pipeline
metadata:
 name: pipeline-build-image
spec:
 resources:
   - name: workspace
     type: git
     optional: true
 tasks:
   - name: check-workspace

Closes tektoncd#1710
pritidesai added a commit to pritidesai/pipeline that referenced this issue Jan 21, 2020
Pipeline inputs and outputs are considered required, there is no way
today to mark them optional. This change introduces a new field called
optional as part of the PipelineDeclaredResource similar to previous PR tektoncd#1601,
by default optional is set to false and a resource is required.
To mark any resource optional, set optional to true:

apiVersion: tekton.dev/v1alpha1
kind: Pipeline
metadata:
 name: pipeline-build-image
spec:
 resources:
   - name: workspace
     type: git
     optional: true
 tasks:
   - name: check-workspace

Closes tektoncd#1710
pritidesai added a commit to pritidesai/pipeline that referenced this issue Jan 21, 2020
Pipeline inputs and outputs are considered required, there is no way
today to mark them optional. This change introduces a new field called
optional as part of the PipelineDeclaredResource similar to previous PR tektoncd#1601,
by default optional is set to false and a resource is required.
To mark any resource optional, set optional to true:

apiVersion: tekton.dev/v1alpha1
kind: Pipeline
metadata:
 name: pipeline-build-image
spec:
 resources:
   - name: workspace
     type: git
     optional: true
 tasks:
   - name: check-workspace

Closes tektoncd#1710
pritidesai added a commit to pritidesai/pipeline that referenced this issue Jan 21, 2020
Pipeline inputs and outputs are considered required, there is no way
today to mark them optional. This change introduces a new field called
optional as part of the PipelineDeclaredResource similar to previous PR tektoncd#1601,
by default optional is set to false and a resource is required.
To mark any resource optional, set optional to true:

apiVersion: tekton.dev/v1alpha1
kind: Pipeline
metadata:
 name: pipeline-build-image
spec:
 resources:
   - name: workspace
     type: git
     optional: true
 tasks:
   - name: check-workspace

Closes tektoncd#1710
pritidesai added a commit to pritidesai/pipeline that referenced this issue Jan 22, 2020
Pipeline inputs and outputs are considered required, there is no way
today to mark them optional. This change introduces a new field called
optional as part of the PipelineDeclaredResource similar to previous PR tektoncd#1601,
by default optional is set to false and a resource is required.
To mark any resource optional, set optional to true:

apiVersion: tekton.dev/v1alpha1
kind: Pipeline
metadata:
 name: pipeline-build-image
spec:
 resources:
   - name: workspace
     type: git
     optional: true
 tasks:
   - name: check-workspace

Closes tektoncd#1710
pritidesai added a commit to pritidesai/pipeline that referenced this issue Jan 23, 2020
Pipeline inputs and outputs are considered required, there is no way
today to mark them optional. This change introduces a new field called
optional as part of the PipelineDeclaredResource similar to previous PR tektoncd#1601,
by default optional is set to false and a resource is required.
To mark any resource optional, set optional to true:

apiVersion: tekton.dev/v1alpha1
kind: Pipeline
metadata:
 name: pipeline-build-image
spec:
 resources:
   - name: workspace
     type: git
     optional: true
 tasks:
   - name: check-workspace

Closes tektoncd#1710
pritidesai added a commit to pritidesai/pipeline that referenced this issue Jan 23, 2020
Pipeline inputs and outputs are considered required, there is no way
today to mark them optional. This change introduces a new field called
optional as part of the PipelineDeclaredResource similar to previous PR tektoncd#1601,
by default optional is set to false and a resource is required.
To mark any resource optional, set optional to true:

apiVersion: tekton.dev/v1alpha1
kind: Pipeline
metadata:
 name: pipeline-build-image
spec:
 resources:
   - name: workspace
     type: git
     optional: true
 tasks:
   - name: check-workspace

Closes tektoncd#1710
tekton-robot pushed a commit that referenced this issue Feb 3, 2020
Pipeline inputs and outputs are considered required, there is no way
today to mark them optional. This change introduces a new field called
optional as part of the PipelineDeclaredResource similar to previous PR #1601,
by default optional is set to false and a resource is required.
To mark any resource optional, set optional to true:

apiVersion: tekton.dev/v1alpha1
kind: Pipeline
metadata:
 name: pipeline-build-image
spec:
 resources:
   - name: workspace
     type: git
     optional: true
 tasks:
   - name: check-workspace

Closes #1710
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants