Allow multiple sources to be used with record package
This commit is contained in:
@@ -19,7 +19,6 @@ package kubelet
|
||||
import (
|
||||
"strconv"
|
||||
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/capabilities"
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/client"
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/client/record"
|
||||
@@ -74,9 +73,5 @@ func SetupLogging() {
|
||||
|
||||
func SetupEventSending(client *client.Client, hostname string) {
|
||||
glog.Infof("Sending events to api server.")
|
||||
record.StartRecording(client.Events(""),
|
||||
api.EventSource{
|
||||
Component: "kubelet",
|
||||
Host: hostname,
|
||||
})
|
||||
record.StartRecording(client.Events(""))
|
||||
}
|
||||
|
Reference in New Issue
Block a user