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

Proposal: Change API Group for triggers #332

Closed
vdemeester opened this issue Jan 10, 2020 · 5 comments · Fixed by #497
Closed

Proposal: Change API Group for triggers #332

vdemeester opened this issue Jan 10, 2020 · 5 comments · Fixed by #497
Assignees
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@vdemeester
Copy link
Member

While experimenting on tektoncd/pipeline#1773, I experimented with api groups (tekton.dev) and commented out that, I wished, triggers would have a different API group than tektoncd/pipeline.

(make it easier to detect the precense of trigger without having to know which types it exposes — right now.. | grep tekton.dev returns pipeline and triggers 😛).

It might be a bit late to change tektoncd/pipeline api group, but I feel we could do it for tektoncd/triggers given we are still in 0.1 👼.

The proposal would be to use triggers.tekton.dev as APIGroup instead of tekton.dev (making it easier to detect by looking at existing APIs).

@vtereso @dibyom @bobcatfish @iancoffey @wlynch wdyt ?

/area api
/kind question
/kind feature

@tekton-robot tekton-robot added the kind/feature Categorizes issue or PR as related to a new feature. label Jan 10, 2020
@dibyom
Copy link
Member

dibyom commented Jan 10, 2020

Sounds like a reasonable change to me.
Are there any other benefits besides detecting the presence of Triggers?

Also, doesn't this mean we'd have to update all bindings/templates/eventlistener yamls to the new apiGroup. Would the mutating webhook help here as well?

@vdemeester
Copy link
Member Author

Sounds like a reasonable change to me.
Are there any other benefits besides detecting the presence of Triggers?

Not much, just that I feel it "isolate" each project each project project.tekton.dev ; under the same umbrella tekton.dev 😝.

Also, doesn't this mean we'd have to update all bindings/templates/eventlistener yamls to the new apiGroup. Would the mutating webhook help here as well?

Good question, I think the webhook could be setup to listen to both as a backward compatible mechanism but I am not sure… I didn't experiment with that yet 😅

@wlynch
Copy link
Member

wlynch commented Jan 10, 2020

👍

Related: Having a separate API Group / Namespace would also have prevented #262.

A similar pattern can be found in other projects Knative (serving.knative.dev, eventing.knative.dev, messaging.knative.dev, internal.knative.dev, ...), Istio (config.istio.io, networking.istio.io, ...)

@dibyom
Copy link
Member

dibyom commented Feb 18, 2020

/assign

@ncskier
Copy link
Member

ncskier commented Feb 21, 2020

@dibyom and I talked offline about moving this issue to the beginning of v0.4.0 development, so that we don't introduce a breaking change right before releasing v0.3.0. So, I'm going to move this issue to the v0.4.0 Milestone. We'll want to merge the code at the beginning of the release development cycle so that we can have a good amount of time for testing 👍

@ncskier ncskier modified the milestones: Triggers 0.3, Triggers v0.4.0 Feb 21, 2020
dibyom added a commit to dibyom/triggers that referenced this issue Mar 24, 2020
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>
dibyom added a commit to dibyom/triggers that referenced this issue Mar 26, 2020
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>
dibyom added a commit to dibyom/triggers that referenced this issue Mar 26, 2020
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>
dibyom added a commit to dibyom/triggers that referenced this issue Mar 26, 2020
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>
dibyom added a commit to dibyom/triggers that referenced this issue Mar 26, 2020
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>
dibyom added a commit to dibyom/triggers that referenced this issue Mar 26, 2020
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>
tekton-robot pushed a commit that referenced this issue Mar 27, 2020
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>
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.

5 participants