Skip to content

Commit

Permalink
Merge pull request #226 from mars1024/bugfix/scheme
Browse files Browse the repository at this point in the history
fix: add kube-ovn types to default scheme
  • Loading branch information
oilbeater authored Jan 14, 2020
2 parents 023c8e1 + 276a28c commit 111cfa1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@ package controller

import (
"fmt"
"github.com/alauda/kube-ovn/pkg/util"
"k8s.io/apimachinery/pkg/labels"
"strings"
"time"

kubeovnv1 "github.com/alauda/kube-ovn/pkg/apis/kubeovn/v1"
kubeovninformer "github.com/alauda/kube-ovn/pkg/client/informers/externalversions"
kubeovnlister "github.com/alauda/kube-ovn/pkg/client/listers/kube-ovn/v1"
"github.com/alauda/kube-ovn/pkg/ovs"
"github.com/alauda/kube-ovn/pkg/util"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/labels"
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/client-go/informers"
Expand Down Expand Up @@ -97,7 +98,7 @@ func NewController(config *Configuration) *Controller {
// Create event broadcaster
// Add ovn-controller types to the default Kubernetes Scheme so Events can be
// logged for ovn-controller types.
utilruntime.Must(scheme.AddToScheme(scheme.Scheme))
utilruntime.Must(kubeovnv1.AddToScheme(scheme.Scheme))
klog.V(4).Info("Creating event broadcaster")
eventBroadcaster := record.NewBroadcaster()
eventBroadcaster.StartLogging(klog.Infof)
Expand Down

0 comments on commit 111cfa1

Please sign in to comment.