You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Based on #1
Let's create a simple controller inside this project that watch Knative Services and emit a CloudEvent when a new Knative Service is created:
You can follow the following examples inside the tekton controller which creates a "Controller" and a "Reconciler"
As mentioned in #1 this is a Kubernetes controller that don't manage any new CRD, it just monitors existing CRDs, I think this is an important distinction to be made here.
Based on #1
Let's create a simple controller inside this project that watch Knative Services and emit a CloudEvent when a new Knative Service is created:
You can follow the following examples inside the tekton controller which creates a "Controller" and a "Reconciler"
https://github.com/tektoncd/experimental/blob/main/cloudevents/pkg/reconciler/pipelinerun/controller.go#L39
https://github.com/tektoncd/experimental/blob/main/cloudevents/pkg/reconciler/pipelinerun/reconciler.go#L75
The reconciler emits the event in the linked line.
The controller register the watches for the resources that we are interested.
The text was updated successfully, but these errors were encountered: