route

package
v2.11.26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2024 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Overview

Package route contains the reconciler for three types:

* VirtualServices * Routes * Apps

Unlike traditional Kubernetes resources which project out, this reconciler is a funnel in. There are N:1 Apps to Route and N:1 Routes to VirtualServices. A VirtualService represents all the hosts on a single domain.

In order to trigger updates, this reconciler watches Routes, Apps and VirtualServices. It then enqueues the domain of the VirtualService that needs to be updated.

Routes are a resource that's not controlled. They are created by Apps but the App doesn't retain ownership. Deleting a Route should (but currently doesn't) cascade to remove the route binding on Apps.

VirtualServices are created by this reconciler, but aren't controlled by any one Route, instead they're owned by all meaning that if all are deleted, the VirtualService will be as well.

Package route is a generated GoMock package.

Package route is a generated GoMock package.

Package route is a generated GoMock package.

Package route is a generated GoMock package.

Package route is a generated GoMock package.

Package route is a generated GoMock package.

Package route is a generated GoMock package.

Package route is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildEnqueuer

func BuildEnqueuer(enqueue func(types.NamespacedName)) func(interface{}) error

BuildEnqueuer returns a function that will enqueue a JSON marshalled RouteSpecFields from a Route or Route.

func EnqueueRoutesOfVirtualService

func EnqueueRoutesOfVirtualService(enqueue func(interface{})) func(obj interface{})

EnqueueRoutesOfVirtualService will find the corresponding routes for the VirtualService. It will Enqueue a key for each one. We aren't able to use EnqueueControllerOf (as other components do), because a VirtualService is NOT owned by a single Route. Therefore, when one changes, we need to grab the collection of corresponding Routes.

func FilterVSManagedByKf

func FilterVSManagedByKf() func(obj interface{}) bool

FilterVSManagedByKf makes it simple to create FilterFunc's for use with cache.FilteringResourceEventHandler that filter based on the "app.kubernetes.io/managed-by": "kf" label and if the type is a VirtualService.

func NewController

func NewController(ctx context.Context, cmw configmap.Watcher) *controller.Impl

NewController creates a new controller capable of reconciling Kf Routes.

Types

type FakeAppLister

type FakeAppLister struct {
	// contains filtered or unexported fields
}

FakeAppLister is a mock of AppLister interface.

func NewFakeAppLister

func NewFakeAppLister(ctrl *gomock.Controller) *FakeAppLister

NewFakeAppLister creates a new mock instance.

func (*FakeAppLister) Apps

Apps mocks base method.

func (*FakeAppLister) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*FakeAppLister) List

func (m *FakeAppLister) List(arg0 labels.Selector) ([]*v1alpha1.App, error)

List mocks base method.

type FakeAppListerMockRecorder

type FakeAppListerMockRecorder struct {
	// contains filtered or unexported fields
}

FakeAppListerMockRecorder is the mock recorder for FakeAppLister.

func (*FakeAppListerMockRecorder) Apps

func (mr *FakeAppListerMockRecorder) Apps(arg0 interface{}) *gomock.Call

Apps indicates an expected call of Apps.

func (*FakeAppListerMockRecorder) List

func (mr *FakeAppListerMockRecorder) List(arg0 interface{}) *gomock.Call

List indicates an expected call of List.

type FakeAppNamespaceLister

type FakeAppNamespaceLister struct {
	// contains filtered or unexported fields
}

FakeAppNamespaceLister is a mock of AppNamespaceLister interface.

func NewFakeAppNamespaceLister

func NewFakeAppNamespaceLister(ctrl *gomock.Controller) *FakeAppNamespaceLister

NewFakeAppNamespaceLister creates a new mock instance.

func (*FakeAppNamespaceLister) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*FakeAppNamespaceLister) Get

func (m *FakeAppNamespaceLister) Get(arg0 string) (*v1alpha1.App, error)

Get mocks base method.

func (*FakeAppNamespaceLister) List

List mocks base method.

type FakeAppNamespaceListerMockRecorder

type FakeAppNamespaceListerMockRecorder struct {
	// contains filtered or unexported fields
}

FakeAppNamespaceListerMockRecorder is the mock recorder for FakeAppNamespaceLister.

func (*FakeAppNamespaceListerMockRecorder) Get

func (mr *FakeAppNamespaceListerMockRecorder) Get(arg0 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*FakeAppNamespaceListerMockRecorder) List

func (mr *FakeAppNamespaceListerMockRecorder) List(arg0 interface{}) *gomock.Call

List indicates an expected call of List.

type FakeKfAlpha1Interface

type FakeKfAlpha1Interface struct {
	// contains filtered or unexported fields
}

FakeKfAlpha1Interface is a mock of KfV1alpha1Interface interface.

func NewFakeKfAlpha1Interface

func NewFakeKfAlpha1Interface(ctrl *gomock.Controller) *FakeKfAlpha1Interface

NewFakeKfAlpha1Interface creates a new mock instance.

func (*FakeKfAlpha1Interface) Apps

Apps mocks base method.

func (*FakeKfAlpha1Interface) Builds

Builds mocks base method.

func (*FakeKfAlpha1Interface) ClusterServiceBrokers

ClusterServiceBrokers mocks base method.

func (*FakeKfAlpha1Interface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*FakeKfAlpha1Interface) RESTClient

func (m *FakeKfAlpha1Interface) RESTClient() rest.Interface

RESTClient mocks base method.

func (*FakeKfAlpha1Interface) Routes

Routes mocks base method.

func (*FakeKfAlpha1Interface) Scales

Scales mocks base method.

func (*FakeKfAlpha1Interface) ServiceBrokers

ServiceBrokers mocks base method.

func (*FakeKfAlpha1Interface) ServiceInstanceBindings

func (m *FakeKfAlpha1Interface) ServiceInstanceBindings(arg0 string) v1alpha10.ServiceInstanceBindingInterface

ServiceInstanceBindings mocks base method.

func (*FakeKfAlpha1Interface) ServiceInstances

ServiceInstances mocks base method.

func (*FakeKfAlpha1Interface) SourcePackages

SourcePackages mocks base method.

func (*FakeKfAlpha1Interface) Spaces

Spaces mocks base method.

func (*FakeKfAlpha1Interface) TaskSchedules

TaskSchedules mocks base method.

func (*FakeKfAlpha1Interface) Tasks

Tasks mocks base method.

type FakeKfAlpha1InterfaceMockRecorder

type FakeKfAlpha1InterfaceMockRecorder struct {
	// contains filtered or unexported fields
}

FakeKfAlpha1InterfaceMockRecorder is the mock recorder for FakeKfAlpha1Interface.

func (*FakeKfAlpha1InterfaceMockRecorder) Apps

func (mr *FakeKfAlpha1InterfaceMockRecorder) Apps(arg0 interface{}) *gomock.Call

Apps indicates an expected call of Apps.

func (*FakeKfAlpha1InterfaceMockRecorder) Builds

func (mr *FakeKfAlpha1InterfaceMockRecorder) Builds(arg0 interface{}) *gomock.Call

Builds indicates an expected call of Builds.

func (*FakeKfAlpha1InterfaceMockRecorder) ClusterServiceBrokers

func (mr *FakeKfAlpha1InterfaceMockRecorder) ClusterServiceBrokers() *gomock.Call

ClusterServiceBrokers indicates an expected call of ClusterServiceBrokers.

func (*FakeKfAlpha1InterfaceMockRecorder) RESTClient

func (mr *FakeKfAlpha1InterfaceMockRecorder) RESTClient() *gomock.Call

RESTClient indicates an expected call of RESTClient.

func (*FakeKfAlpha1InterfaceMockRecorder) Routes

func (mr *FakeKfAlpha1InterfaceMockRecorder) Routes(arg0 interface{}) *gomock.Call

Routes indicates an expected call of Routes.

func (*FakeKfAlpha1InterfaceMockRecorder) Scales

func (mr *FakeKfAlpha1InterfaceMockRecorder) Scales(arg0 interface{}) *gomock.Call

Scales indicates an expected call of Scales.

func (*FakeKfAlpha1InterfaceMockRecorder) ServiceBrokers

func (mr *FakeKfAlpha1InterfaceMockRecorder) ServiceBrokers(arg0 interface{}) *gomock.Call

ServiceBrokers indicates an expected call of ServiceBrokers.

func (*FakeKfAlpha1InterfaceMockRecorder) ServiceInstanceBindings

func (mr *FakeKfAlpha1InterfaceMockRecorder) ServiceInstanceBindings(arg0 interface{}) *gomock.Call

ServiceInstanceBindings indicates an expected call of ServiceInstanceBindings.

func (*FakeKfAlpha1InterfaceMockRecorder) ServiceInstances

func (mr *FakeKfAlpha1InterfaceMockRecorder) ServiceInstances(arg0 interface{}) *gomock.Call

ServiceInstances indicates an expected call of ServiceInstances.

func (*FakeKfAlpha1InterfaceMockRecorder) SourcePackages

func (mr *FakeKfAlpha1InterfaceMockRecorder) SourcePackages(arg0 interface{}) *gomock.Call

SourcePackages indicates an expected call of SourcePackages.

func (*FakeKfAlpha1InterfaceMockRecorder) Spaces

Spaces indicates an expected call of Spaces.

func (*FakeKfAlpha1InterfaceMockRecorder) TaskSchedules

func (mr *FakeKfAlpha1InterfaceMockRecorder) TaskSchedules(arg0 interface{}) *gomock.Call

TaskSchedules indicates an expected call of TaskSchedules.

func (*FakeKfAlpha1InterfaceMockRecorder) Tasks

func (mr *FakeKfAlpha1InterfaceMockRecorder) Tasks(arg0 interface{}) *gomock.Call

Tasks indicates an expected call of Tasks.

type FakeKfInterface

type FakeKfInterface struct {
	// contains filtered or unexported fields
}

FakeKfInterface is a mock of Interface interface.

func NewFakeKfInterface

func NewFakeKfInterface(ctrl *gomock.Controller) *FakeKfInterface

NewFakeKfInterface creates a new mock instance.

func (*FakeKfInterface) Discovery

Discovery mocks base method.

func (*FakeKfInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*FakeKfInterface) KfV1alpha1

KfV1alpha1 mocks base method.

type FakeKfInterfaceMockRecorder

type FakeKfInterfaceMockRecorder struct {
	// contains filtered or unexported fields
}

FakeKfInterfaceMockRecorder is the mock recorder for FakeKfInterface.

func (*FakeKfInterfaceMockRecorder) Discovery

func (mr *FakeKfInterfaceMockRecorder) Discovery() *gomock.Call

Discovery indicates an expected call of Discovery.

func (*FakeKfInterfaceMockRecorder) KfV1alpha1

func (mr *FakeKfInterfaceMockRecorder) KfV1alpha1() *gomock.Call

KfV1alpha1 indicates an expected call of KfV1alpha1.

type FakeNamespaceLister

type FakeNamespaceLister struct {
	// contains filtered or unexported fields
}

FakeNamespaceLister is a mock of NamespaceLister interface.

func NewFakeNamespaceLister

func NewFakeNamespaceLister(ctrl *gomock.Controller) *FakeNamespaceLister

NewFakeNamespaceLister creates a new mock instance.

func (*FakeNamespaceLister) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*FakeNamespaceLister) Get

func (m *FakeNamespaceLister) Get(arg0 string) (*v1.Namespace, error)

Get mocks base method.

func (*FakeNamespaceLister) List

func (m *FakeNamespaceLister) List(arg0 labels.Selector) ([]*v1.Namespace, error)

List mocks base method.

type FakeNamespaceListerMockRecorder

type FakeNamespaceListerMockRecorder struct {
	// contains filtered or unexported fields
}

FakeNamespaceListerMockRecorder is the mock recorder for FakeNamespaceLister.

func (*FakeNamespaceListerMockRecorder) Get

func (mr *FakeNamespaceListerMockRecorder) Get(arg0 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*FakeNamespaceListerMockRecorder) List

func (mr *FakeNamespaceListerMockRecorder) List(arg0 interface{}) *gomock.Call

List indicates an expected call of List.

type FakeNetworking

type FakeNetworking struct {
	// contains filtered or unexported fields
}

FakeNetworking is a mock of NetworkingV1alpha3Interface interface.

func NewFakeNetworking

func NewFakeNetworking(ctrl *gomock.Controller) *FakeNetworking

NewFakeNetworking creates a new mock instance.

func (*FakeNetworking) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*FakeNetworking) RESTClient

func (m *FakeNetworking) RESTClient() rest.Interface

RESTClient mocks base method.

func (*FakeNetworking) ServiceEntries

func (m *FakeNetworking) ServiceEntries(arg0 string) v1alpha30.ServiceEntryInterface

ServiceEntries mocks base method.

func (*FakeNetworking) VirtualServices

func (m *FakeNetworking) VirtualServices(arg0 string) v1alpha30.VirtualServiceInterface

VirtualServices mocks base method.

type FakeNetworkingClient

type FakeNetworkingClient struct {
	// contains filtered or unexported fields
}

FakeNetworkingClient is a mock of Interface interface.

func NewFakeNetworkingClient

func NewFakeNetworkingClient(ctrl *gomock.Controller) *FakeNetworkingClient

NewFakeNetworkingClient creates a new mock instance.

func (*FakeNetworkingClient) Discovery

Discovery mocks base method.

func (*FakeNetworkingClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*FakeNetworkingClient) NetworkingV1alpha3

NetworkingV1alpha3 mocks base method.

type FakeNetworkingClientMockRecorder

type FakeNetworkingClientMockRecorder struct {
	// contains filtered or unexported fields
}

FakeNetworkingClientMockRecorder is the mock recorder for FakeNetworkingClient.

func (*FakeNetworkingClientMockRecorder) Discovery

func (mr *FakeNetworkingClientMockRecorder) Discovery() *gomock.Call

Discovery indicates an expected call of Discovery.

func (*FakeNetworkingClientMockRecorder) NetworkingV1alpha3

func (mr *FakeNetworkingClientMockRecorder) NetworkingV1alpha3() *gomock.Call

NetworkingV1alpha3 indicates an expected call of NetworkingV1alpha3.

type FakeNetworkingMockRecorder

type FakeNetworkingMockRecorder struct {
	// contains filtered or unexported fields
}

FakeNetworkingMockRecorder is the mock recorder for FakeNetworking.

func (*FakeNetworkingMockRecorder) RESTClient

func (mr *FakeNetworkingMockRecorder) RESTClient() *gomock.Call

RESTClient indicates an expected call of RESTClient.

func (*FakeNetworkingMockRecorder) ServiceEntries

func (mr *FakeNetworkingMockRecorder) ServiceEntries(arg0 interface{}) *gomock.Call

ServiceEntries indicates an expected call of ServiceEntries.

func (*FakeNetworkingMockRecorder) VirtualServices

func (mr *FakeNetworkingMockRecorder) VirtualServices(arg0 interface{}) *gomock.Call

VirtualServices indicates an expected call of VirtualServices.

type FakeReconciler

type FakeReconciler struct {
	// contains filtered or unexported fields
}

FakeReconciler is a mock of Reconciler interface.

func NewFakeReconciler

func NewFakeReconciler(ctrl *gomock.Controller) *FakeReconciler

NewFakeReconciler creates a new mock instance.

func (*FakeReconciler) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*FakeReconciler) Reconcile

func (m *FakeReconciler) Reconcile(arg0 context.Context, arg1 string) error

Reconcile mocks base method.

type FakeReconcilerMockRecorder

type FakeReconcilerMockRecorder struct {
	// contains filtered or unexported fields
}

FakeReconcilerMockRecorder is the mock recorder for FakeReconciler.

func (*FakeReconcilerMockRecorder) Reconcile

func (mr *FakeReconcilerMockRecorder) Reconcile(arg0, arg1 interface{}) *gomock.Call

Reconcile indicates an expected call of Reconcile.

type FakeRouteInterface

type FakeRouteInterface struct {
	// contains filtered or unexported fields
}

FakeRouteInterface is a mock of RouteInterface interface.

func NewFakeRouteInterface

func NewFakeRouteInterface(ctrl *gomock.Controller) *FakeRouteInterface

NewFakeRouteInterface creates a new mock instance.

func (*FakeRouteInterface) Create

Create mocks base method.

func (*FakeRouteInterface) Delete

func (m *FakeRouteInterface) Delete(arg0 context.Context, arg1 string, arg2 v1.DeleteOptions) error

Delete mocks base method.

func (*FakeRouteInterface) DeleteCollection

func (m *FakeRouteInterface) DeleteCollection(arg0 context.Context, arg1 v1.DeleteOptions, arg2 v1.ListOptions) error

DeleteCollection mocks base method.

func (*FakeRouteInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*FakeRouteInterface) Get

func (m *FakeRouteInterface) Get(arg0 context.Context, arg1 string, arg2 v1.GetOptions) (*v1alpha1.Route, error)

Get mocks base method.

func (*FakeRouteInterface) List

List mocks base method.

func (*FakeRouteInterface) Patch

func (m *FakeRouteInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v1.PatchOptions, arg5 ...string) (*v1alpha1.Route, error)

Patch mocks base method.

func (*FakeRouteInterface) Update

Update mocks base method.

func (*FakeRouteInterface) UpdateStatus

func (m *FakeRouteInterface) UpdateStatus(arg0 context.Context, arg1 *v1alpha1.Route, arg2 v1.UpdateOptions) (*v1alpha1.Route, error)

UpdateStatus mocks base method.

func (*FakeRouteInterface) Watch

Watch mocks base method.

type FakeRouteInterfaceMockRecorder

type FakeRouteInterfaceMockRecorder struct {
	// contains filtered or unexported fields
}

FakeRouteInterfaceMockRecorder is the mock recorder for FakeRouteInterface.

func (*FakeRouteInterfaceMockRecorder) Create

func (mr *FakeRouteInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*FakeRouteInterfaceMockRecorder) Delete

func (mr *FakeRouteInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*FakeRouteInterfaceMockRecorder) DeleteCollection

func (mr *FakeRouteInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call

DeleteCollection indicates an expected call of DeleteCollection.

func (*FakeRouteInterfaceMockRecorder) Get

func (mr *FakeRouteInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*FakeRouteInterfaceMockRecorder) List

func (mr *FakeRouteInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call

List indicates an expected call of List.

func (*FakeRouteInterfaceMockRecorder) Patch

func (mr *FakeRouteInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call

Patch indicates an expected call of Patch.

func (*FakeRouteInterfaceMockRecorder) Update

func (mr *FakeRouteInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call

Update indicates an expected call of Update.

func (*FakeRouteInterfaceMockRecorder) UpdateStatus

func (mr *FakeRouteInterfaceMockRecorder) UpdateStatus(arg0, arg1, arg2 interface{}) *gomock.Call

UpdateStatus indicates an expected call of UpdateStatus.

func (*FakeRouteInterfaceMockRecorder) Watch

func (mr *FakeRouteInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call

Watch indicates an expected call of Watch.

type FakeRouteLister

type FakeRouteLister struct {
	// contains filtered or unexported fields
}

FakeRouteLister is a mock of RouteLister interface.

func NewFakeRouteLister

func NewFakeRouteLister(ctrl *gomock.Controller) *FakeRouteLister

NewFakeRouteLister creates a new mock instance.

func (*FakeRouteLister) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*FakeRouteLister) List

func (m *FakeRouteLister) List(arg0 labels.Selector) ([]*v1alpha1.Route, error)

List mocks base method.

func (*FakeRouteLister) Routes

Routes mocks base method.

type FakeRouteListerMockRecorder

type FakeRouteListerMockRecorder struct {
	// contains filtered or unexported fields
}

FakeRouteListerMockRecorder is the mock recorder for FakeRouteLister.

func (*FakeRouteListerMockRecorder) List

func (mr *FakeRouteListerMockRecorder) List(arg0 interface{}) *gomock.Call

List indicates an expected call of List.

func (*FakeRouteListerMockRecorder) Routes

func (mr *FakeRouteListerMockRecorder) Routes(arg0 interface{}) *gomock.Call

Routes indicates an expected call of Routes.

type FakeRouteNamespaceLister

type FakeRouteNamespaceLister struct {
	// contains filtered or unexported fields
}

FakeRouteNamespaceLister is a mock of RouteNamespaceLister interface.

func NewFakeRouteNamespaceLister

func NewFakeRouteNamespaceLister(ctrl *gomock.Controller) *FakeRouteNamespaceLister

NewFakeRouteNamespaceLister creates a new mock instance.

func (*FakeRouteNamespaceLister) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*FakeRouteNamespaceLister) Get

Get mocks base method.

func (*FakeRouteNamespaceLister) List

List mocks base method.

type FakeRouteNamespaceListerMockRecorder

type FakeRouteNamespaceListerMockRecorder struct {
	// contains filtered or unexported fields
}

FakeRouteNamespaceListerMockRecorder is the mock recorder for FakeRouteNamespaceLister.

func (*FakeRouteNamespaceListerMockRecorder) Get

func (mr *FakeRouteNamespaceListerMockRecorder) Get(arg0 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*FakeRouteNamespaceListerMockRecorder) List

func (mr *FakeRouteNamespaceListerMockRecorder) List(arg0 interface{}) *gomock.Call

List indicates an expected call of List.

type FakeServiceInstanceBindingLister

type FakeServiceInstanceBindingLister struct {
	// contains filtered or unexported fields
}

FakeServiceInstanceBindingLister is a mock of ServiceInstanceBindingLister interface.

func NewFakeServiceInstanceBindingLister

func NewFakeServiceInstanceBindingLister(ctrl *gomock.Controller) *FakeServiceInstanceBindingLister

NewFakeServiceInstanceBindingLister creates a new mock instance.

func (*FakeServiceInstanceBindingLister) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*FakeServiceInstanceBindingLister) List

List mocks base method.

func (*FakeServiceInstanceBindingLister) ServiceInstanceBindings

ServiceInstanceBindings mocks base method.

type FakeServiceInstanceBindingListerMockRecorder

type FakeServiceInstanceBindingListerMockRecorder struct {
	// contains filtered or unexported fields
}

FakeServiceInstanceBindingListerMockRecorder is the mock recorder for FakeServiceInstanceBindingLister.

func (*FakeServiceInstanceBindingListerMockRecorder) List

func (mr *FakeServiceInstanceBindingListerMockRecorder) List(arg0 interface{}) *gomock.Call

List indicates an expected call of List.

func (*FakeServiceInstanceBindingListerMockRecorder) ServiceInstanceBindings

func (mr *FakeServiceInstanceBindingListerMockRecorder) ServiceInstanceBindings(arg0 interface{}) *gomock.Call

ServiceInstanceBindings indicates an expected call of ServiceInstanceBindings.

type FakeServiceInstanceBindingNamespaceLister

type FakeServiceInstanceBindingNamespaceLister struct {
	// contains filtered or unexported fields
}

FakeServiceInstanceBindingNamespaceLister is a mock of ServiceInstanceBindingNamespaceLister interface.

func NewFakeServiceInstanceBindingNamespaceLister

func NewFakeServiceInstanceBindingNamespaceLister(ctrl *gomock.Controller) *FakeServiceInstanceBindingNamespaceLister

NewFakeServiceInstanceBindingNamespaceLister creates a new mock instance.

func (*FakeServiceInstanceBindingNamespaceLister) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*FakeServiceInstanceBindingNamespaceLister) Get

Get mocks base method.

func (*FakeServiceInstanceBindingNamespaceLister) List

List mocks base method.

type FakeServiceInstanceBindingNamespaceListerMockRecorder

type FakeServiceInstanceBindingNamespaceListerMockRecorder struct {
	// contains filtered or unexported fields
}

FakeServiceInstanceBindingNamespaceListerMockRecorder is the mock recorder for FakeServiceInstanceBindingNamespaceLister.

func (*FakeServiceInstanceBindingNamespaceListerMockRecorder) Get

Get indicates an expected call of Get.

func (*FakeServiceInstanceBindingNamespaceListerMockRecorder) List

List indicates an expected call of List.

type FakeSpaceLister

type FakeSpaceLister struct {
	// contains filtered or unexported fields
}

FakeSpaceLister is a mock of SpaceLister interface.

func NewFakeSpaceLister

func NewFakeSpaceLister(ctrl *gomock.Controller) *FakeSpaceLister

NewFakeSpaceLister creates a new mock instance.

func (*FakeSpaceLister) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*FakeSpaceLister) Get

func (m *FakeSpaceLister) Get(arg0 string) (*v1alpha1.Space, error)

Get mocks base method.

func (*FakeSpaceLister) List

func (m *FakeSpaceLister) List(arg0 labels.Selector) ([]*v1alpha1.Space, error)

List mocks base method.

type FakeSpaceListerMockRecorder

type FakeSpaceListerMockRecorder struct {
	// contains filtered or unexported fields
}

FakeSpaceListerMockRecorder is the mock recorder for FakeSpaceLister.

func (*FakeSpaceListerMockRecorder) Get

func (mr *FakeSpaceListerMockRecorder) Get(arg0 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*FakeSpaceListerMockRecorder) List

func (mr *FakeSpaceListerMockRecorder) List(arg0 interface{}) *gomock.Call

List indicates an expected call of List.

type FakeVirtualServiceInterface

type FakeVirtualServiceInterface struct {
	// contains filtered or unexported fields
}

FakeVirtualServiceInterface is a mock of VirtualServiceInterface interface.

func NewFakeVirtualServiceInterface

func NewFakeVirtualServiceInterface(ctrl *gomock.Controller) *FakeVirtualServiceInterface

NewFakeVirtualServiceInterface creates a new mock instance.

func (*FakeVirtualServiceInterface) Create

Create mocks base method.

func (*FakeVirtualServiceInterface) Delete

Delete mocks base method.

func (*FakeVirtualServiceInterface) DeleteCollection

func (m *FakeVirtualServiceInterface) DeleteCollection(arg0 context.Context, arg1 v1.DeleteOptions, arg2 v1.ListOptions) error

DeleteCollection mocks base method.

func (*FakeVirtualServiceInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*FakeVirtualServiceInterface) Get

Get mocks base method.

func (*FakeVirtualServiceInterface) List

List mocks base method.

func (*FakeVirtualServiceInterface) Patch

func (m *FakeVirtualServiceInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v1.PatchOptions, arg5 ...string) (*v1alpha3.VirtualService, error)

Patch mocks base method.

func (*FakeVirtualServiceInterface) Update

Update mocks base method.

func (*FakeVirtualServiceInterface) Watch

Watch mocks base method.

type FakeVirtualServiceInterfaceMockRecorder

type FakeVirtualServiceInterfaceMockRecorder struct {
	// contains filtered or unexported fields
}

FakeVirtualServiceInterfaceMockRecorder is the mock recorder for FakeVirtualServiceInterface.

func (*FakeVirtualServiceInterfaceMockRecorder) Create

func (mr *FakeVirtualServiceInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*FakeVirtualServiceInterfaceMockRecorder) Delete

func (mr *FakeVirtualServiceInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*FakeVirtualServiceInterfaceMockRecorder) DeleteCollection

func (mr *FakeVirtualServiceInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call

DeleteCollection indicates an expected call of DeleteCollection.

func (*FakeVirtualServiceInterfaceMockRecorder) Get

func (mr *FakeVirtualServiceInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*FakeVirtualServiceInterfaceMockRecorder) List

func (mr *FakeVirtualServiceInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call

List indicates an expected call of List.

func (*FakeVirtualServiceInterfaceMockRecorder) Patch

func (mr *FakeVirtualServiceInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call

Patch indicates an expected call of Patch.

func (*FakeVirtualServiceInterfaceMockRecorder) Update

func (mr *FakeVirtualServiceInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call

Update indicates an expected call of Update.

func (*FakeVirtualServiceInterfaceMockRecorder) Watch

func (mr *FakeVirtualServiceInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call

Watch indicates an expected call of Watch.

type FakeVirtualServiceLister

type FakeVirtualServiceLister struct {
	// contains filtered or unexported fields
}

FakeVirtualServiceLister is a mock of VirtualServiceLister interface.

func NewFakeVirtualServiceLister

func NewFakeVirtualServiceLister(ctrl *gomock.Controller) *FakeVirtualServiceLister

NewFakeVirtualServiceLister creates a new mock instance.

func (*FakeVirtualServiceLister) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*FakeVirtualServiceLister) List

List mocks base method.

func (*FakeVirtualServiceLister) VirtualServices

VirtualServices mocks base method.

type FakeVirtualServiceListerMockRecorder

type FakeVirtualServiceListerMockRecorder struct {
	// contains filtered or unexported fields
}

FakeVirtualServiceListerMockRecorder is the mock recorder for FakeVirtualServiceLister.

func (*FakeVirtualServiceListerMockRecorder) List

func (mr *FakeVirtualServiceListerMockRecorder) List(arg0 interface{}) *gomock.Call

List indicates an expected call of List.

func (*FakeVirtualServiceListerMockRecorder) VirtualServices

func (mr *FakeVirtualServiceListerMockRecorder) VirtualServices(arg0 interface{}) *gomock.Call

VirtualServices indicates an expected call of VirtualServices.

type FakeVirtualServiceNamespaceLister

type FakeVirtualServiceNamespaceLister struct {
	// contains filtered or unexported fields
}

FakeVirtualServiceNamespaceLister is a mock of VirtualServiceNamespaceLister interface.

func NewFakeVirtualServiceNamespaceLister

func NewFakeVirtualServiceNamespaceLister(ctrl *gomock.Controller) *FakeVirtualServiceNamespaceLister

NewFakeVirtualServiceNamespaceLister creates a new mock instance.

func (*FakeVirtualServiceNamespaceLister) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*FakeVirtualServiceNamespaceLister) Get

Get mocks base method.

func (*FakeVirtualServiceNamespaceLister) List

List mocks base method.

type FakeVirtualServiceNamespaceListerMockRecorder

type FakeVirtualServiceNamespaceListerMockRecorder struct {
	// contains filtered or unexported fields
}

FakeVirtualServiceNamespaceListerMockRecorder is the mock recorder for FakeVirtualServiceNamespaceLister.

func (*FakeVirtualServiceNamespaceListerMockRecorder) Get

func (mr *FakeVirtualServiceNamespaceListerMockRecorder) Get(arg0 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*FakeVirtualServiceNamespaceListerMockRecorder) List

func (mr *FakeVirtualServiceNamespaceListerMockRecorder) List(arg0 interface{}) *gomock.Call

List indicates an expected call of List.

type Reconciler

type Reconciler struct {
	*reconciler.Base
	// contains filtered or unexported fields
}

Reconciler reconciles a Route object with the K8s cluster.

func (*Reconciler) ApplyChanges

func (r *Reconciler) ApplyChanges(
	ctx context.Context,
	namespace string,
	domain string,
) error

ApplyChanges updates the linked resources in the cluster with the current status of the Route.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, key string) error

Reconcile is called by knative/pkg when a new event is observed by one of the watchers in the controller.

Directories

Path Synopsis
Package resources holds simple functions for synthesizing child resources from a Route.
Package resources holds simple functions for synthesizing child resources from a Route.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL