Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions pkg/provisioners/container/controller/resources/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package resources

import (
"fmt"

"github.com/knative/eventing/pkg/apis/eventing/v1alpha1"
"github.com/knative/eventing/pkg/controller"

Expand All @@ -39,8 +40,8 @@ func MakeDeployment(source *v1alpha1.Source, org *appsv1.Deployment, channel *v1
containerArgs = append(containerArgs, fmt.Sprintf("--%s=%q", k, v))
}
}
remote := fmt.Sprintf("--remote=http://%s", channel.Status.Sinkable.DomainInternal)
containerArgs = append(containerArgs, remote)
sink := fmt.Sprintf("--sink=http://%s", channel.Status.Sinkable.DomainInternal)
containerArgs = append(containerArgs, sink)

deploy := &appsv1.Deployment{
TypeMeta: metav1.TypeMeta{
Expand Down
6 changes: 3 additions & 3 deletions pkg/sources/heartbeats/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type Heartbeat struct {
}

var (
remote string
sink string
label string
periodStr string
period int
Expand All @@ -27,7 +27,7 @@ var (
)

func init() {
flag.StringVar(&remote, "remote", "", "the host url to heartbeat to")
flag.StringVar(&sink, "sink", "", "the host url to heartbeat to")
flag.StringVar(&label, "label", "", "a special label")
flag.StringVar(&periodStr, "period", "5", "the number of seconds between heartbeats")
}
Expand All @@ -53,7 +53,7 @@ func main() {

func send() {
hb.Sequence++
resp, err := http.Post(remote, "application/json", body())
resp, err := http.Post(sink, "application/json", body())
if err != nil {
log.Printf("Unable to make request: %+v, %v", hb, err)
return
Expand Down