Skip to content

Commit 36d681e

Browse files
authored
chore: Adding missing sinks and sources to schema file (#8460)
💄 Adding missing sinks and sources to schema file Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
1 parent 779992f commit 36d681e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cmd/schema/main.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ import (
2626
eventingv1alpha1 "knative.dev/eventing/pkg/apis/eventing/v1alpha1"
2727
flowsv1 "knative.dev/eventing/pkg/apis/flows/v1"
2828
messagingv1 "knative.dev/eventing/pkg/apis/messaging/v1"
29+
sinksv1alpha1 "knative.dev/eventing/pkg/apis/sinks/v1alpha1"
2930
sourcesv1 "knative.dev/eventing/pkg/apis/sources/v1"
31+
sourcesv1alpha1 "knative.dev/eventing/pkg/apis/sources/v1alpha1"
3032
)
3133

3234
// schema is a tool to dump the schema for Eventing resources.
@@ -40,10 +42,15 @@ func main() {
4042
registry.Register(&messagingv1.Channel{})
4143
registry.Register(&messagingv1.InMemoryChannel{})
4244

45+
// Sinks
46+
registry.Register(&sinksv1alpha1.JobSink{})
47+
registry.Register(&sinksv1alpha1.IntegrationSink{})
48+
4349
// Sources
4450
registry.Register(&sourcesv1.ApiServerSource{})
4551
registry.Register(&sourcesv1.SinkBinding{})
4652
registry.Register(&sourcesv1.ContainerSource{}) // WARNING: THIS DOES NOT WORK OUT OF THE BOX: See https://github.com/knative/eventing/issues/5353.
53+
registry.Register(&sourcesv1alpha1.IntegrationSource{})
4754

4855
// Flows
4956
registry.Register(&flowsv1.Sequence{})

0 commit comments

Comments
 (0)