controller

package
v0.0.0-...-a245187 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

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

func GetContainerPID

func GetContainerPID(containerID string) (int, error)

GetContainerPID returns PID of a container specified by its ID

Types

type PodController

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

PodController defines interface for managing pod controller

func NewPodController

func NewPodController(kubeClientset kubernetes.Interface, podInformer corev1informer.PodInformer, localNodeIP string, ns netns.NsHandle, links []netlink.Link) PodController

NewPodController returns a new serices controller wathing and calling nic methods for pod add/delete/update events.

Jump to

Keyboard shortcuts

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