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

Switch API group for triggers to triggers.tekton.dev #497

Merged
merged 1 commit into from
Mar 27, 2020

Conversation

dibyom
Copy link
Member

@dibyom dibyom commented Mar 23, 2020

Changes

BREAKING CHANGE: Users will have to delete, and recreate
resources after updating its API group.

Fixes #332

Signed-off-by: Dibyo Mukherjee dibyo@google.com

TODO:

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.

Release Notes

All Triggers resources now use the triggers.tekton.dev API Group.

BREAKING CHANGE: Users will have to delete, and recreate
resources after updating its API group.

@tekton-robot tekton-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 23, 2020
@tekton-robot tekton-robot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Mar 23, 2020
@tekton-robot tekton-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Mar 24, 2020
@dibyom dibyom changed the title WIP: Migrate to triggers.tekton.dev API group Switch API group for triggers to triggers.tekton.dev Mar 24, 2020
@dibyom dibyom marked this pull request as ready for review March 24, 2020 19:39
@tekton-robot tekton-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 24, 2020
@dibyom
Copy link
Member Author

dibyom commented Mar 24, 2020

/hold

Ready for review but need to validate and document upgrade paths

@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 Mar 24, 2020
@dibyom
Copy link
Member Author

dibyom commented Mar 25, 2020

Tried this out locally.

  • Users will have to change the role resources for their ELs on their own.
  • Will write up a script in a followup that can change any existing old types to the new ones and then delete the old CRDs.

/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 Mar 25, 2020
Copy link
Member

@ncskier ncskier left a comment

Choose a reason for hiding this comment

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

Thanks for making these changes @dibyom! Looks great for the most part.

I think that I found a few places where your find & replace changed something that it shouldn't have. Also, I left a comment about the changes to the e2e tests... are those necessary for this PR? I don't want them to get lost in this commit since so many files have been modified.

docs/getting-started/ingress-run.yaml Outdated Show resolved Hide resolved
docs/getting-started/ingress-run.yaml Outdated Show resolved Hide resolved
docs/getting-started/rbac/admin-role.yaml Show resolved Hide resolved
docs/getting-started/webhook-run.yaml Outdated Show resolved Hide resolved
test/eventlistener_test.go Outdated Show resolved Hide resolved
@dibyom dibyom force-pushed the 332 branch 4 times, most recently from d6a1c2d to ab48a92 Compare March 26, 2020 03:39
@dibyom
Copy link
Member Author

dibyom commented Mar 26, 2020

/test pull-tekton-triggers-build-tests

Copy link
Member

@ncskier ncskier left a comment

Choose a reason for hiding this comment

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

Thanks for the updates @dibyom! Just a couple more questions/comments.

Also, I did a search for apiVersion: tekton.dev and found a couple places where we didn't update to triggers.tekton.dev (we don't use the update-docs scripts in these locations 😕)


Also, should https://github.com/tektoncd/triggers/blob/master/docs/getting-started/triggers.yaml#L16 be v1beta1?

test/eventlistener_test.go Outdated Show resolved Hide resolved
docs/getting-started/rbac/admin-role.yaml Outdated Show resolved Hide resolved
BREAKING CHANGE: Users will have to delete, and recreate
resources after updating its API group.

Fixes tektoncd#332

Signed-off-by: Dibyo Mukherjee <dibyo@google.com>
Copy link
Member

@ncskier ncskier 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 Mar 27, 2020
@tekton-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ncskier

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 Mar 27, 2020
@tekton-robot tekton-robot merged commit ea6c193 into tektoncd:master Mar 27, 2020
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. cla: yes lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Proposal: Change API Group for triggers
4 participants