controller

package
v0.0.0-...-c4e93b7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cronjob

func Cronjob(period string, r *Retriever)

Cronjob uses input retriever to start an IP retrieve job, every period the job will be executed once.

Types

type Retriever

type Retriever struct {
	Clientset *kubernetes.Clientset
	// contains filtered or unexported fields
}

Retriever is used to retriever IP addresses from deleted pods

func NewRetriever

func NewRetriever(clientv3 *clientv3.Client, clientset *kubernetes.Clientset) *Retriever

NewRetriever uses etcd and k8s client to create and return an IP retriever

func (*Retriever) RetrieveFixedIP

func (r *Retriever) RetrieveFixedIP()

RetrieveFixedIP retrieves fixed IP from deleted statefulset

func (*Retriever) RetrieveIP

func (r *Retriever) RetrieveIP()

RetrieveIP scans all pods and retrieve IP

Jump to

Keyboard shortcuts

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