diff --git a/pkg/sources/v1alpha2/apiserver_client.go b/pkg/sources/v1alpha2/apiserver_client.go index bde890a673..3f66511c6d 100644 --- a/pkg/sources/v1alpha2/apiserver_client.go +++ b/pkg/sources/v1alpha2/apiserver_client.go @@ -183,6 +183,7 @@ func (b *APIServerSourceBuilder) Sink(sink duckv1.Destination) *APIServerSourceB return b } +// CloudEventOverrides adds given Cloud Event override extensions map to source spec func (b *APIServerSourceBuilder) CloudEventOverrides(ceo map[string]string, toRemove []string) *APIServerSourceBuilder { if ceo == nil && len(toRemove) == 0 { return b diff --git a/pkg/sources/v1alpha2/ping_client.go b/pkg/sources/v1alpha2/ping_client.go index 70d13692f0..daf84efda1 100644 --- a/pkg/sources/v1alpha2/ping_client.go +++ b/pkg/sources/v1alpha2/ping_client.go @@ -151,6 +151,7 @@ func (b *PingSourceBuilder) Sink(sink duckv1.Destination) *PingSourceBuilder { return b } +// CloudEventOverrides adds given Cloud Event override extensions map to source spec func (b *PingSourceBuilder) CloudEventOverrides(ceo map[string]string, toRemove []string) *PingSourceBuilder { if ceo == nil && len(toRemove) == 0 { return b