controller

package
v0.0.0-...-42351fe Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2020 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	APIServerHost        string
	KubeConfigFile       string
	Client               clientset.Interface
	ResyncPeriod         time.Duration
	DefaultService       string
	Namespace            string
	ListenPorts          *wls_config.ListenPorts
	EnableMetrics        bool
	ElectionID           string
	PublishService       string
	SyncRateLimit        float32
	RedisSentinelService string
	RedisSentinelPort    int
	RedisMasterName      string
	RedisMaxRetries      int
	RedisMinRetryBackoff time.Duration
	RedisMaxRetryBackoff time.Duration
	RedisNamespacePrefix string
}

Configuration contains all the settings required by an Ingress controller

type WLSController

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

WLSController describes a WLS Ingress controller.

func NewWLSController

func NewWLSController(config *Configuration, mc metric.Collector, fs file.Filesystem) *WLSController

NewWLSController creates a new WLS Ingress controller.

func (*WLSController) OnUpdate

func (n *WLSController) OnUpdate(ingressIn *wls_config.Configuration) error

OnUpdate is called by the synchronization loop whenever configuration changes were detected. The received backend Configuration is copied into the running configuration

func (*WLSController) Start

func (n *WLSController) Start()

Start starts a new NGINX master process running in the foreground.

func (*WLSController) Stop

func (n *WLSController) Stop() error

Stop gracefully stops the WLS HTTP proxy.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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