dns

package
v0.1.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSRecordController

type DNSRecordController interface {
	Run(stopCh <-chan struct{})
}

DNSRecordController interface defines the method for synchronizing the node dns records with k8s DNS component(such as CoreDNS)

func NewCoreDNSRecordController

func NewCoreDNSRecordController(client clientset.Interface,
	informerFactory informers.SharedInformerFactory,
	listenInsecureAddr string,
	syncPeriod int) (DNSRecordController, error)

NewCoreDNSRecordController create a CoreDNSRecordController that synchronizes node dns records with CoreDNS configuration

type Event

type Event struct {
	Obj  interface{}
	Type EventType
}

type EventType

type EventType string
const (
	NodeAdd         EventType = "NODE_ADD"
	NodeUpdate      EventType = "NODE_UPDATE"
	NodeDelete      EventType = "NODE_DELETE"
	ServiceAdd      EventType = "SERVICE_ADD"
	ServiceUpdate   EventType = "SERVICE_UPDATE"
	ServiceDelete   EventType = "SERVICE_DELETE"
	ConfigMapAdd    EventType = "CONFIGMAP_ADD"
	ConfigMapUpdate EventType = "CONFIGMAP_UPDATE"
	ConfigMapDelete EventType = "CONFIGMAP_DELETE"
)

Jump to

Keyboard shortcuts

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