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-0142: Introducing the StepAction CRD #7260

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

chitrangpatel
Copy link
Contributor

@chitrangpatel chitrangpatel commented Oct 23, 2023

This PR introduces the StepAction CRD in v1alpha1. This is not the complete CRD. As we add support for params, results etc. we will introduce them in follow-up PRs.

It is the first of many implementation PRs as described in issue #7259.

Changes

Submitter Checklist

As the author of this PR, please check off the items in this checklist:

  • Has Docs if any changes are user facing, including updates to minimum requirements e.g. Kubernetes version bumps
  • Has Tests included if any functionality added or changed
  • Follows the commit message standard
  • Meets the Tekton contributor standards (including functionality, content, code)
  • Has a kind label. You can add one by adding a comment on this PR that contains /kind <type>. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tep
  • Release notes block below has been updated with any user facing changes (API changes, bug fixes, changes requiring upgrade notices or deprecation warnings). See some examples of good release notes.
  • Release notes contains the string "action required" if the change requires additional action from users switching to the new release

Release Notes

Introduced the StepAction CRD as designed in https://github.com/tektoncd/community/blob/main/teps/0142-enable-step-reusability.md. The implementation is still ongoing; feature is not yet functional.

/kind feature

@tekton-robot tekton-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/feature Categorizes issue or PR as related to a new feature. labels Oct 23, 2023
@tekton-robot tekton-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Oct 23, 2023
@tekton-robot
Copy link
Collaborator

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

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/openapi_generated.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/stepaction_conversion.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/stepaction_defaults.go Do not exist N/A
pkg/apis/pipeline/v1alpha1/stepaction_types.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/stepaction_validation.go Do not exist 92.3%

@tekton-robot
Copy link
Collaborator

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

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/openapi_generated.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/stepaction_conversion.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/stepaction_defaults.go Do not exist N/A
pkg/apis/pipeline/v1alpha1/stepaction_types.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/stepaction_validation.go Do not exist 92.3%

@tekton-robot
Copy link
Collaborator

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

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/openapi_generated.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/stepaction_conversion.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/stepaction_defaults.go Do not exist N/A
pkg/apis/pipeline/v1alpha1/stepaction_types.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/stepaction_validation.go Do not exist 92.3%

@tekton-robot
Copy link
Collaborator

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

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/openapi_generated.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/stepaction_conversion.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/stepaction_defaults.go Do not exist N/A
pkg/apis/pipeline/v1alpha1/stepaction_types.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/stepaction_validation.go Do not exist 92.3%

@tekton-robot
Copy link
Collaborator

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

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/openapi_generated.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/stepaction_conversion.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/stepaction_defaults.go Do not exist N/A
pkg/apis/pipeline/v1alpha1/stepaction_types.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/stepaction_validation.go Do not exist 92.3%

@tekton-robot
Copy link
Collaborator

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

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/openapi_generated.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/stepaction_conversion.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/stepaction_defaults.go Do not exist N/A
pkg/apis/pipeline/v1alpha1/stepaction_types.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/stepaction_validation.go Do not exist 92.3%

cmd/webhook/main.go Show resolved Hide resolved
@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 23, 2023
sa.yaml Outdated Show resolved Hide resolved
@tekton-robot
Copy link
Collaborator

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

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/openapi_generated.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/stepaction_conversion.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/stepaction_defaults.go Do not exist N/A
pkg/apis/pipeline/v1alpha1/stepaction_types.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/stepaction_validation.go Do not exist 92.3%

@tekton-robot
Copy link
Collaborator

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

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/openapi_generated.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/stepaction_conversion.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/stepaction_defaults.go Do not exist N/A
pkg/apis/pipeline/v1alpha1/stepaction_types.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/stepaction_validation.go Do not exist 92.3%

@tekton-robot
Copy link
Collaborator

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

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/openapi_generated.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/stepaction_conversion.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/stepaction_defaults.go Do not exist N/A
pkg/apis/pipeline/v1alpha1/stepaction_types.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/stepaction_validation.go Do not exist 92.3%

@tekton-robot
Copy link
Collaborator

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

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/openapi_generated.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/stepaction_conversion.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/stepaction_defaults.go Do not exist N/A
pkg/apis/pipeline/v1alpha1/stepaction_types.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/stepaction_validation.go Do not exist 92.3%

@chitrangpatel chitrangpatel requested a review from jerop October 24, 2023 00:14
config/300-stepaction.yaml Outdated Show resolved Hide resolved
This PR introduces the StepAction CRD in `v1alpha1`. This is not the complete CRD. As we add support for `params`, `results` etc. we will introduce in follow-up PRs.

It is the first of many implementation PRs as described in issue:  tektoncd#7259
Copy link
Member

@jerop jerop left a comment

Choose a reason for hiding this comment

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

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 24, 2023
@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jerop, Yongxuanzhang

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:
  • OWNERS [Yongxuanzhang,jerop]

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

@tekton-robot
Copy link
Collaborator

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

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/openapi_generated.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/stepaction_conversion.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/stepaction_defaults.go Do not exist N/A
pkg/apis/pipeline/v1alpha1/stepaction_types.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/stepaction_validation.go Do not exist 92.3%

@tekton-robot
Copy link
Collaborator

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

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/openapi_generated.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/stepaction_conversion.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/stepaction_defaults.go Do not exist N/A
pkg/apis/pipeline/v1alpha1/stepaction_types.go Do not exist 0.0%
pkg/apis/pipeline/v1alpha1/stepaction_validation.go Do not exist 92.3%

@tekton-robot tekton-robot merged commit 8123d63 into tektoncd:main Oct 24, 2023
2 checks passed
@pritidesai
Copy link
Member

Sorry for being a bad cop here 🙏 As excited as this is (introducing a significant new concept in the project) did not follow the diversity requirements:

The Tekton community promotes company diversity as a best practice for pull request. This means that, where possible, one of the reviewers of a pull request and the author should be affiliated to different organizations.

This policy was introduced after a discussion at the Governance WG:

tektoncd/community#829

/cc @tektoncd/core-maintainers

@tekton-robot tekton-robot requested a review from a team October 24, 2023 15:06
@chitrangpatel
Copy link
Contributor Author

Sorry for being a bad cop here 🙏 As excited as this is (introducing a significant new concept in the project) did not follow the diversity requirements:

The Tekton community promotes company diversity as a best practice for pull request. This means that, where possible, one of the reviewers of a pull request and the author should be affiliated to different organizations.

This policy was introduced after a discussion at the Governance WG:

tektoncd/community#829

/cc @tektoncd/core-maintainers

Agreed! Let's not repeat the same mistake in the follow up PRs.
For now, is there any way we can undo the change so that others can review this?

@jerop
Copy link
Member

jerop commented Oct 24, 2023

We were just eager to review in a timely manner. We will keep an eye on that guidance going forward. Thank you for pointing it out @pritidesai!

@pritidesai @tektoncd/core-maintainers if you have any feedback on this change, @chitrangpatel can address in a follow up PR.

We would also appreciate any help in reviewing future PRs as soon as you can as we are targeting v0.54 release next month 🙏🏾

@pritidesai
Copy link
Member

We would also appreciate any help in reviewing future PRs as soon as you can as we are targeting v0.54 release next month

0.53 is not out yet and the focus right now is on one last pending PR 🙏 :

https://github.com/tektoncd/pipeline/pulls?q=is%3Aopen+is%3Apr+milestone%3A%22Pipelines+v0.53+LTS%22

@Yongxuanzhang
Copy link
Member

Sorry for being a bad cop here 🙏 As excited as this is (introducing a significant new concept in the project) did not follow the diversity requirements:

The Tekton community promotes company diversity as a best practice for pull request. This means that, where possible, one of the reviewers of a pull request and the author should be affiliated to different organizations.

This policy was introduced after a discussion at the Governance WG:

tektoncd/community#829

/cc @tektoncd/core-maintainers

Thanks @pritidesai for the reminder, we should definitely follow the rules!

@jerop
Copy link
Member

jerop commented Oct 24, 2023

0.53 is not out yet and the focus right now is on one last pending PR 🙏 :

https://github.com/tektoncd/pipeline/pulls?q=is%3Aopen+is%3Apr+milestone%3A%22Pipelines+v0.53+LTS%22

That's right, but that one remaining PR has feedback from several maintainers who can merge it when feedback is addressed -- happy to take a look at that PR if it helps (but we need a non-Googler to review it at this point)

Started reviewing this PR targeting v0.54 because this is a huge chunk of work split over many pull requests, so would like to get some head start to make it in time instead of rushing near the deadline - #7259

@jerop jerop changed the title Introducing the StepAction CRD TEP-0142: Introducing the StepAction CRD Oct 25, 2023
@jerop jerop added this to the Pipelines v0.54 milestone Oct 26, 2023
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/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants