controller

package
v0.0.0-...-bd870d0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClientset

func GetClientset(kubeconfig string) (*kubernetes.Clientset, error)

GetClientset returns kubernetes clientset built based on either kubectl config file or for in-cluster mode on a mounted service account token

Types

type EndpointSliceController

type EndpointSliceController interface {
	Start(<-chan struct{}) error
}

EndpointSliceController defines interface for managing EndpointSlice controller

func NewEndpointSliceController

func NewEndpointSliceController(
	proxy proxy.Proxy,
	kubeClientset kubernetes.Interface,
	epSliceInformer v1beta1.EndpointSliceInformer) EndpointSliceController

NewEndpointSliceController returns a new EndpointSlice controller

type EndpointsController

type EndpointsController interface {
	Start(<-chan struct{}) error
}

EndpointsController defines interface for managing Endpoints controller

func NewEndpointsController

func NewEndpointsController(
	proxy proxy.Proxy,
	kubeClientset kubernetes.Interface,
	epInformer corev1informer.EndpointsInformer) EndpointsController

NewEndpointsController returns a new Endpoints controller

type ServiceController

type ServiceController interface {
	Start(<-chan struct{}) error
}

ServiceController defines interface for managing Services controller

func NewServiceController

func NewServiceController(
	proxy proxy.Proxy,
	kubeClientset kubernetes.Interface,
	svcInformer corev1informer.ServiceInformer) ServiceController

NewServiceController returns a new serices controller wathing and calling Proxy methods for services add/delete/update events.

Jump to

Keyboard shortcuts

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