controller

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2018 License: Apache-2.0 Imports: 40 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 {
	Kong

	APIServerHost  string
	KubeConfigFile string
	KubeClient     clientset.Interface
	KubeConf       *rest.Config

	ResyncPeriod time.Duration

	DefaultService string

	Namespace string

	ForceNamespaceIsolation bool

	DefaultHealthzURL     string
	DefaultSSLCertificate string

	// optional
	PublishService       string
	PublishStatusAddress string

	UpdateStatus           bool
	ElectionID             string
	UpdateStatusOnShutdown bool

	EnableProfiling bool

	EnableSSLChainCompletion bool

	FakeCertificatePath string
	FakeCertificateSHA  string

	SyncRateLimit float32
}

Configuration contains all the settings required by an Ingress controller

type Kong

type Kong struct {
	URL    string
	Client *kong.RestClient
}

type NGINXController

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

NGINXController ...

func NewNGINXController

func NewNGINXController(config *Configuration, fs file.Filesystem) *NGINXController

NewNGINXController creates a new NGINX Ingress controller. If the environment variable NGINX_BINARY exists it will be used as source for nginx commands

func (NGINXController) GetPublishService

func (n NGINXController) GetPublishService() *apiv1.Service

GetPublishService returns the configured service used to set ingress status

func (*NGINXController) OnUpdate

func (n *NGINXController) OnUpdate(ingressCfg *ingress.Configuration) error

OnUpdate is called periodically by syncQueue to keep the configuration in sync. returning nil implies the synchronization finished correctly. Returning an error means requeue the update.

func (*NGINXController) Start

func (n *NGINXController) Start()

Start start a new NGINX master process running in foreground.

func (*NGINXController) Stop

func (n *NGINXController) Stop() error

Stop gracefully stops the NGINX master process.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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