controller

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2020 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HAProxyController

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

HAProxyController has internal data of a HAProxyController instance

func NewHAProxyController

func NewHAProxyController() *HAProxyController

NewHAProxyController constructor

func (*HAProxyController) BackendDefaults

func (hc *HAProxyController) BackendDefaults() defaults.Backend

BackendDefaults defines default values to the ingress core

func (*HAProxyController) Check

func (hc *HAProxyController) Check(_ *http.Request) error

Check health check implementation

func (*HAProxyController) ConfigureFlags

func (hc *HAProxyController) ConfigureFlags(flags *pflag.FlagSet)

ConfigureFlags allow to configure more flags before the parsing of command line arguments

func (*HAProxyController) CreateX509CertsDir added in v0.8.1

func (hc *HAProxyController) CreateX509CertsDir(bindName string, certs []string) (string, error)

CreateX509CertsDir hard link files from certs to a single directory.

func (*HAProxyController) DefaultEndpoint

func (hc *HAProxyController) DefaultEndpoint() ingress.Endpoint

DefaultEndpoint returns the Endpoint to use as default when the referenced service does not exists

func (*HAProxyController) DefaultIngressClass

func (hc *HAProxyController) DefaultIngressClass() string

DefaultIngressClass returns the ingress class name

func (*HAProxyController) DrainSupport

func (hc *HAProxyController) DrainSupport() (drainSupport bool)

DrainSupport indicates whether or not this controller supports a "drain" mode where unavailable and terminating pods are included in the list of returned pods and used to direct certain traffic (e.g., traffic using persistence) to terminating/unavailable pods.

func (*HAProxyController) Info

Info provides controller name and repository infos

func (*HAProxyController) Name

func (hc *HAProxyController) Name() string

Name provides the complete name of the controller

func (*HAProxyController) OnUpdate

func (hc *HAProxyController) OnUpdate(cfg ingress.Configuration) error

OnUpdate regenerate the configuration file of the backend

func (*HAProxyController) OverrideFlags

func (hc *HAProxyController) OverrideFlags(flags *pflag.FlagSet)

OverrideFlags allows controller to override command line parameter flags

func (*HAProxyController) SetConfig

func (hc *HAProxyController) SetConfig(configMap *api.ConfigMap)

SetConfig receives the ConfigMap the user has configured

func (*HAProxyController) SetListers

func (hc *HAProxyController) SetListers(lister *ingress.StoreLister)

SetListers give access to the store listers

func (*HAProxyController) Start

func (hc *HAProxyController) Start()

Start starts the controller

func (*HAProxyController) Stop

func (hc *HAProxyController) Stop() error

Stop shutdown the controller process

func (*HAProxyController) SyncIngress added in v0.8.1

func (hc *HAProxyController) SyncIngress(item interface{}) error

SyncIngress sync HAProxy config from a very early stage

func (*HAProxyController) UpdateIngressStatus

func (hc *HAProxyController) UpdateIngressStatus(*extensions.Ingress) []api.LoadBalancerIngress

UpdateIngressStatus custom callback used to update the status in an Ingress rule If the function returns nil the standard functions will be executed.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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