Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var IPAM string
IPAM system being used
Functions ¶
func MetaNameIndexFunc ¶
MetaNameIndexFunc indexes based on an object's name
Types ¶
type Client ¶
type Client interface { // Runs the client, watching for resources Run(stopCh <-chan struct{}) // Annotates resources that contain given hosts with the given IP address AnnotateResources(ip string, hosts []string) // contains filtered or unexported methods }
Client defines the interface the orchestration should implement
type IPGroup ¶
IPGroup is a struct of IPGroups and a protective mutex
func (*IPGroup) GetAllHosts ¶
GetAllHosts returns all hosts across IPGroups
type IPGroups ¶
IPGroups are groups of Specs Specs in the same group will share an IP address Specs in the "" (empty string) group will get their own IP addresses
type K8sClient ¶
type K8sClient struct {
// contains filtered or unexported fields
}
K8sClient that the controller uses to talk to Kubernetes
func NewKubernetesClient ¶
func NewKubernetesClient( params *KubeParams, ) (*K8sClient, error)
NewKubernetesClient sets up an interface with Kubernetes
func (*K8sClient) AnnotateResources ¶
AnnotateResources that contain given hosts with the given IP address
type KubeParams ¶
type KubeParams struct { KubeClient kubernetes.Interface Namespaces []string NamespaceLabel string Channel chan<- bytes.Buffer // contains filtered or unexported fields }
KubeParams allows NewKubernetesClient to receive all or some parameters
Click to show internal directories.
Click to hide internal directories.