Skip to content

Commit

Permalink
Fix apache#645: use the right kind of sink in knative trait
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaferraro committed May 7, 2019
1 parent 96c746a commit 556221c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/trait/knative.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,15 @@ func (t *knativeTrait) Configure(e *Environment) (bool, error) {

t.ChannelSources = strings.Join(items, ",")
}
if t.EndpointSinks == "" {
if t.ChannelSinks == "" {
items := make([]string, 0)

metadata.Each(e.CamelCatalog, e.Integration.Spec.Sources, func(_ int, meta metadata.IntegrationMetadata) bool {
items = append(items, knativeutil.ExtractChannelNames(meta.ToURIs)...)
return true
})

t.EndpointSinks = strings.Join(items, ",")
t.ChannelSinks = strings.Join(items, ",")
}
if t.EndpointSources == "" {
items := make([]string, 0)
Expand Down

0 comments on commit 556221c

Please sign in to comment.