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

Adding support to enable pipelineSpec #1333

Merged
merged 1 commit into from
Oct 2, 2019

Conversation

pritidesai
Copy link
Member

@pritidesai pritidesai commented Sep 19, 2019

Changes

Its now possible to embed the whole pipeline specification into Pipeline Run
using pipelineSpec, for example:

apiVersion: tekton.dev/v1alpha1
kind: PipelineRun
metadata:
  name: pipelinerun-echo-greetings
spec:
  pipelineRef:
    name: pipeline-echo-greetings

Can be specified as:

apiVersion: tekton.dev/v1alpha1
kind: PipelineRun
metadata:
  name: pipelinerun-echo-greetings
spec:
  pipelineSpec:
    tasks:
    - name: echo-good-morning
    ...
    params:
    ...

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

See the contribution guide for more details.

Double check this list of stuff that's easy to miss:

Reviewer Notes

If API changes
are included, additive changes
must be approved by at least two OWNERS
and backwards incompatible changes
must be approved by more than 50% of the OWNERS,
and they must first be added
in a backwards compatible way.

Release Notes

Describe any user facing changes here, or delete this block.

Examples of user facing changes:
- API changes
- Bug fixes
- Any changes in behavior

@googlebot googlebot added the cla: yes Trying to make the CLA bot happy with ppl from different companies work on one commit label Sep 19, 2019
@tekton-robot tekton-robot requested review from dlorenc and a user September 19, 2019 17:43
@tekton-robot tekton-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Sep 19, 2019
@tekton-robot
Copy link
Collaborator

Hi @pritidesai. Thanks for your PR.

I'm waiting for a tektoncd member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@tekton-robot tekton-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Sep 19, 2019
docs/pipelineruns.md Outdated Show resolved Hide resolved
@tekton-robot
Copy link
Collaborator

The following is the coverage report on pkg/.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/pipeline_types.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/pipelinerun_validation.go 92.9% 89.5% -3.4
pkg/reconciler/pipelinerun/pipelinerun.go 82.4% 83.0% 0.6
pkg/reconciler/pipelinerun/resources/pipelinespec.go Do not exist 100.0%

@pritidesai
Copy link
Member Author

/ok-to-test

@tekton-robot tekton-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Sep 20, 2019
@pritidesai
Copy link
Member Author

/assign pritidesai

@tekton-robot
Copy link
Collaborator

The following is the coverage report on pkg/.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/pipeline_types.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/pipelinerun_validation.go 92.9% 89.5% -3.4
pkg/reconciler/pipelinerun/pipelinerun.go 82.4% 83.0% 0.6
pkg/reconciler/pipelinerun/resources/pipelinespec.go Do not exist 100.0%

@tekton-robot
Copy link
Collaborator

The following is the coverage report on pkg/.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/pipeline_types.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/pipelinerun_validation.go 92.9% 89.5% -3.4
pkg/reconciler/pipelinerun/pipelinerun.go 82.4% 83.0% 0.6
pkg/reconciler/pipelinerun/resources/pipelinespec.go Do not exist 100.0%

@tekton-robot
Copy link
Collaborator

The following is the coverage report on pkg/.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/pipeline_types.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/pipelinerun_validation.go 92.9% 89.5% -3.4
pkg/reconciler/pipelinerun/pipelinerun.go 82.4% 83.0% 0.6
pkg/reconciler/pipelinerun/resources/pipelinespec.go Do not exist 100.0%

@tekton-robot
Copy link
Collaborator

The following is the coverage report on pkg/.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/pipeline_types.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/pipelinerun_validation.go 92.9% 89.5% -3.4
pkg/reconciler/pipelinerun/pipelinerun.go 82.4% 82.9% 0.5
pkg/reconciler/pipelinerun/resources/pipelinespec.go Do not exist 100.0%

@pritidesai
Copy link
Member Author

/retest

@ghost
Copy link

ghost commented Sep 23, 2019

/lgtm

@tekton-robot tekton-robot assigned ghost Sep 23, 2019
@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 23, 2019
@tekton-robot tekton-robot removed the lgtm Indicates that a PR is ready to be merged. label Sep 23, 2019
@tekton-robot
Copy link
Collaborator

The following is the coverage report on pkg/.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/pipeline_types.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/pipelinerun_validation.go 92.9% 89.5% -3.4
pkg/reconciler/pipelinerun/pipelinerun.go 82.4% 82.9% 0.5
pkg/reconciler/pipelinerun/resources/pipelinespec.go Do not exist 100.0%

@ghost
Copy link

ghost commented Sep 23, 2019

/lgtm

@vdemeester vdemeester added the kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API label Sep 24, 2019
@ghost
Copy link

ghost commented Sep 24, 2019

/hold

I've added this as an agenda item to discuss during tomorrow's Working Group meeting. I think it would be useful to raise the profile of this change a little bit just to make sure that everyone is aware of the change and its meaning prior to merge.

@tekton-robot tekton-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 24, 2019
@pritidesai
Copy link
Member Author

/hold

I've added this as an agenda item to discuss during tomorrow's Working Group meeting. I think it would be useful to raise the profile of this change a little bit just to make sure that everyone is aware of the change and its meaning prior to merge.

hey @sbwsg, have created a doc here, let me know if you want to add anything specific (still editing).

@ghost
Copy link

ghost commented Sep 25, 2019

@pritidesai This is perfect, thankyou. I've added links to this design doc to the WG agenda so people can review before and during the meeting.

@tekton-robot tekton-robot removed the lgtm Indicates that a PR is ready to be merged. label Sep 25, 2019
@tekton-robot
Copy link
Collaborator

The following is the coverage report on pkg/.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/pipeline_types.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/pipelinerun_validation.go 92.9% 89.5% -3.4
pkg/reconciler/pipelinerun/pipelinerun.go 82.4% 82.9% 0.5
pkg/reconciler/pipelinerun/resources/pipelinespec.go Do not exist 100.0%

@tekton-robot
Copy link
Collaborator

The following is the coverage report on pkg/.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/pipeline_types.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/pipelinerun_validation.go 92.9% 89.5% -3.4

@tekton-robot
Copy link
Collaborator

The following is the coverage report on pkg/.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/pipeline_types.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/pipelinerun_validation.go 92.9% 89.5% -3.4
pkg/reconciler/pipelinerun/pipelinerun.go 82.4% 82.9% 0.5
pkg/reconciler/pipelinerun/resources/pipelinespec.go Do not exist 100.0%

@ghost
Copy link

ghost commented Sep 25, 2019

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 25, 2019
Its now possible to embed the whole pipeline specification into Pipeline Run
using pipelineSpec, for example:

apiVersion: tekton.dev/v1alpha1
kind: PipelineRun
metadata:
  name: pipelinerun-echo-greetings
spec:
  pipelineRef:
    name: pipeline-echo-greetings

Can be specified as:

apiVersion: tekton.dev/v1alpha1
kind: PipelineRun
metadata:
  name: pipelinerun-echo-greetings
spec:
  pipelineSpec:
    tasks:
    - name: echo-good-morning
    ...
    params:
    ...
@tekton-robot tekton-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Oct 2, 2019
@tekton-robot
Copy link
Collaborator

The following is the coverage report on pkg/.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/pipeline_types.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/pipelinerun_validation.go 92.9% 89.5% -3.4
pkg/reconciler/pipelinerun/pipelinerun.go 82.6% 83.1% 0.5
pkg/reconciler/pipelinerun/resources/pipelinespec.go Do not exist 100.0%

@ghost
Copy link

ghost commented Oct 2, 2019

/lgtm

I guess the hold label can be cancelled now that we've discussed this in the working group meeting? @pritidesai want me to remove it?

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 2, 2019
Copy link
Member

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

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

/lgtm
/hold cancel

@tekton-robot tekton-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 2, 2019
@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pritidesai, vdemeester

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 Oct 2, 2019
@tekton-robot tekton-robot merged commit b338e40 into tektoncd:master Oct 2, 2019
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. area/api Indicates an issue or PR that deals with the API. cla: yes Trying to make the CLA bot happy with ppl from different companies work on one commit kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants