Documentation ¶
Index ¶
- type HAProxyController
- func (haproxy *HAProxyController) BackendDefaults() defaults.Backend
- func (haproxy *HAProxyController) Check(_ *http.Request) error
- func (haproxy *HAProxyController) ConfigureFlags(flags *pflag.FlagSet)
- func (haproxy *HAProxyController) DefaultEndpoint() ingress.Endpoint
- func (haproxy *HAProxyController) DefaultIngressClass() string
- func (haproxy *HAProxyController) DrainSupport() (drainSupport bool)
- func (haproxy *HAProxyController) Info() *ingress.BackendInfo
- func (haproxy *HAProxyController) Name() string
- func (haproxy *HAProxyController) OnUpdate(cfg ingress.Configuration) error
- func (haproxy *HAProxyController) OverrideFlags(flags *pflag.FlagSet)
- func (haproxy *HAProxyController) SetConfig(configMap *api.ConfigMap)
- func (haproxy *HAProxyController) SetListers(lister *ingress.StoreLister)
- func (haproxy *HAProxyController) Start()
- func (haproxy *HAProxyController) Stop() error
- func (haproxy *HAProxyController) UpdateIngressStatus(*extensions.Ingress) []api.LoadBalancerIngress
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 (haproxy *HAProxyController) BackendDefaults() defaults.Backend
BackendDefaults defines default values to the ingress core
func (*HAProxyController) Check ¶
func (haproxy *HAProxyController) Check(_ *http.Request) error
Check health check implementation
func (*HAProxyController) ConfigureFlags ¶
func (haproxy *HAProxyController) ConfigureFlags(flags *pflag.FlagSet)
ConfigureFlags allow to configure more flags before the parsing of command line arguments
func (*HAProxyController) DefaultEndpoint ¶
func (haproxy *HAProxyController) DefaultEndpoint() ingress.Endpoint
DefaultEndpoint returns the Endpoint to use as default when the referenced service does not exists
func (*HAProxyController) DefaultIngressClass ¶
func (haproxy *HAProxyController) DefaultIngressClass() string
DefaultIngressClass returns the ingress class name
func (*HAProxyController) DrainSupport ¶
func (haproxy *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 ¶
func (haproxy *HAProxyController) Info() *ingress.BackendInfo
Info provides controller name and repository infos
func (*HAProxyController) Name ¶
func (haproxy *HAProxyController) Name() string
Name provides the complete name of the controller
func (*HAProxyController) OnUpdate ¶
func (haproxy *HAProxyController) OnUpdate(cfg ingress.Configuration) error
OnUpdate regenerate the configuration file of the backend
func (*HAProxyController) OverrideFlags ¶
func (haproxy *HAProxyController) OverrideFlags(flags *pflag.FlagSet)
OverrideFlags allows controller to override command line parameter flags
func (*HAProxyController) SetConfig ¶
func (haproxy *HAProxyController) SetConfig(configMap *api.ConfigMap)
SetConfig receives the ConfigMap the user has configured
func (*HAProxyController) SetListers ¶
func (haproxy *HAProxyController) SetListers(lister *ingress.StoreLister)
SetListers give access to the store listers
func (*HAProxyController) Start ¶
func (haproxy *HAProxyController) Start()
Start starts the controller
func (*HAProxyController) Stop ¶
func (haproxy *HAProxyController) Stop() error
Stop shutdown the controller process
func (*HAProxyController) UpdateIngressStatus ¶
func (haproxy *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.