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
Tekton Triggers, v1beta1 API & EventListeners #4243
Comments
No, this is simply missing. The tekton-model-triggers generates only the v1alpha1 model. I'm not sure why a corresponding tekton-model-triggers-v1beta1 was not added when the base v1beta1 tekton model was added. It should be straight-forward to clone / modify what is there for v1alpha1 support to provide the beta1 support. Or you could try the java generator on the tekton crds and see if you are good with switching to what it generates. cc @andreaTP |
I guess our tekton model has gone a bit outdated (since tekton world has been moving so fast). Since we're providing explicit extension, we should add v1beta1 model as well. As Steven suggested it shouldn't be that hard, we're willing to provide code pointers if you're interested in fixing this. |
Since this extension is outdated and we are going to release version 6.0, would it be worth exploring substituting the extension with the java-gen output? @faust64 using the Java generator should be a viable option for you at the moment. I encourage you to try it out and give some feedback around it 🙁 |
I'll let my colleagues know about that Java generator option. |
+ Update tekton pipelines model to v0.39.0 + Update tekton triggers model to v0.20.2 + Split tekton triggers model into tekton-model-triggers-v1alpha1 and tekton-model-triggers-v1beta1 Signed-off-by: Rohan Kumar <rohaan@redhat.com>
…hanges (fabric8io#4243) Follow up for fabric8io#4382 to add changelog and note about breaking change. Signed-off-by: Rohan Kumar <rohaan@redhat.com>
Describe the bug
As of last upgrading my clusters and Tekton operator, I'm now stuck with a broken controller.
Involves: tekton-pipelines 0.33.0, tekton-triggers 0.19.0 (and kubernetes 1.23.5)
We use fabric8 in a controller that watches for existing EventListeners. It relies on some v1alpha1 API version. While this was still valid in previous versions, this is no longer the case today: EventListeners CRD removed v1alpha1 and only has v1beta1.
I tried upgrading my tekton-client dependency, from 5.12.1 to 5.12.2, then 6.0.0-RC1. Either way, I'm told that
package io.fabric8.tekton.triggers.v1beta1 does not exist
Am I doing it wrong?
Going through this repository, I found a couple files in https://github.com/fabric8io/kubernetes-client/tree/master/extensions/tekton/client/src/main/java/io/fabric8/tekton/client (V1alpha1APIGroupClient.java & V1beta1APIGroupClient.java), as well as some tests, https://github.com/fabric8io/kubernetes-client/tree/master/extensions/tekton/tests/src/test/java/io/fabric8/tekton/triggers
As far as I understand, there is no support yet for v1beta1.EventListeners today, am I right?
If so, would it be possible to fix this?
Fabric8 Kubernetes Client version
6.0.0-RC1
Steps to reproduce
Using some existing code, such as https://github.com/fabric8io/kubernetes-client/blob/master/extensions/tekton/tests/src/test/java/io/fabric8/tekton/triggers/v1alpha1/EventListenerTest.java
replace mentions from v1alpha1.EventListener with v1beta1.EventListener.
Build
Expected behavior
code builds
controller actually uses v1beta1 API dealing with EventListeners
Runtime
OpenShift
Kubernetes API Server version
other (please specify in additional context)
Environment
Linux
Fabric8 Kubernetes Client Logs
Additional context
No response
The text was updated successfully, but these errors were encountered: