controller

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2018 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func NewController

func NewController(
	latticeID v1.LatticeID,
	namespacePrefix string,
	internalDNSDomain string,
	dnsmasqConfigPath string,
	dnsmasqHostsFilePath string,
	serviceMeshOptions *servicemesh.Options,
	latticeClient latticeclientset.Interface,
	kubeClient kubeclientset.Interface,
	configInformer latticeinformers.ConfigInformer,
	addressInformer latticeinformers.AddressInformer,
	serviceInformer latticeinformers.ServiceInformer,
) *Controller

NewController returns a newly created DNS Controller.

func (*Controller) Run

func (c *Controller) Run(stopCh <-chan struct{})

Run triggers a goroutine to refresh the cache and rewrite the config at set intervals, until it receives from stopCh

Jump to

Keyboard shortcuts

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