Documentation
¶
Index ¶
Constants ¶
View Source
const CONTROLLER = "haproxy.org/ingress-controller"
Variables ¶
This section is empty.
Functions ¶
func UpdateStatus ¶ added in v1.7.1
Types ¶
type Ingress ¶ added in v1.7.1
type Ingress struct {
// contains filtered or unexported fields
}
func New ¶ added in v1.7.1
New returns an Ingress instance to handle the k8s ingress resource given in params. If the k8s ingress resource is not assigned to the controller (no matching IngressClass) then New will return nil
func (*Ingress) HandleAnnotations ¶ added in v1.7.1
func (i *Ingress) HandleAnnotations(k store.K8s, cfg *configuration.ControllerCfg)
HandleAnnotations processes ingress annotations to create HAProxy Rules and constructs corresponding list of RuleIDs. If Ingress Annotations are at the ConfigMap scope, HAProxy Rules will be applied globally without the need to map Rule IDs to specific ingress traffic.
func (*Ingress) Update ¶ added in v1.7.1
func (i *Ingress) Update(k store.K8s, cfg *configuration.ControllerCfg, api api.HAProxyClient) (reload bool)
Update processes a Kubernetes ingress resource and configures HAProxy accordingly by creating corresponding backend, route and HTTP rules.
Click to show internal directories.
Click to hide internal directories.