mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-07 01:56:57 +02:00
Added empty eventhandler
This commit is contained in:
parent
d476efb02c
commit
228be31b3e
@ -108,6 +108,9 @@ func NewOcpRouteSource(
|
|||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (ors *ocpRouteSource) AddEventHandler(handler func() error, stopChan <-chan struct{}, minInterval time.Duration) {
|
||||||
|
}
|
||||||
|
|
||||||
// Endpoints returns endpoint objects for each host-target combination that should be processed.
|
// Endpoints returns endpoint objects for each host-target combination that should be processed.
|
||||||
// Retrieves all OpenShift Route resources on all namespaces
|
// Retrieves all OpenShift Route resources on all namespaces
|
||||||
func (ors *ocpRouteSource) Endpoints() ([]*endpoint.Endpoint, error) {
|
func (ors *ocpRouteSource) Endpoints() ([]*endpoint.Endpoint, error) {
|
||||||
|
@ -22,6 +22,7 @@ import (
|
|||||||
|
|
||||||
cfclient "github.com/cloudfoundry-community/go-cfclient"
|
cfclient "github.com/cloudfoundry-community/go-cfclient"
|
||||||
contour "github.com/heptio/contour/apis/generated/clientset/versioned"
|
contour "github.com/heptio/contour/apis/generated/clientset/versioned"
|
||||||
|
openshift "github.com/openshift/client-go/route/clientset/versioned"
|
||||||
fakeContour "github.com/heptio/contour/apis/generated/clientset/versioned/fake"
|
fakeContour "github.com/heptio/contour/apis/generated/clientset/versioned/fake"
|
||||||
"github.com/stretchr/testify/mock"
|
"github.com/stretchr/testify/mock"
|
||||||
"github.com/stretchr/testify/suite"
|
"github.com/stretchr/testify/suite"
|
||||||
@ -36,6 +37,7 @@ type MockClientGenerator struct {
|
|||||||
istioClient istiomodel.ConfigStore
|
istioClient istiomodel.ConfigStore
|
||||||
cloudFoundryClient *cfclient.Client
|
cloudFoundryClient *cfclient.Client
|
||||||
contourClient contour.Interface
|
contourClient contour.Interface
|
||||||
|
openshiftClient openshift.Interface
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *MockClientGenerator) KubeClient() (kubernetes.Interface, error) {
|
func (m *MockClientGenerator) KubeClient() (kubernetes.Interface, error) {
|
||||||
@ -74,6 +76,15 @@ func (m *MockClientGenerator) ContourClient() (contour.Interface, error) {
|
|||||||
return nil, args.Error(1)
|
return nil, args.Error(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (m *MockClientGenerator) OpenShiftClient() (openshift.Interface, error) {
|
||||||
|
args := m.Called()
|
||||||
|
if args.Error(1) == nil {
|
||||||
|
m.openshiftClient = args.Get(0).(openshift.Interface)
|
||||||
|
return m.openshiftClient, nil
|
||||||
|
}
|
||||||
|
return nil, args.Error(1)
|
||||||
|
}
|
||||||
|
|
||||||
type ByNamesTestSuite struct {
|
type ByNamesTestSuite struct {
|
||||||
suite.Suite
|
suite.Suite
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user