ingress

package
v1.7.11 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const CONTROLLER = "haproxy.org/ingress-controller"

Variables

This section is empty.

Functions

func UpdatePublishService added in v1.7.11

func UpdatePublishService(ingresses []*Ingress, api *kubernetes.Clientset, publishServiceAddresses []string)

Types

type Ingress added in v1.7.1

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

func New added in v1.7.1

func New(k store.K8s, resource *store.Ingress, class string, emptyClass bool) *Ingress

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.

func (*Ingress) UpdateStatus added in v1.7.11

func (i *Ingress) UpdateStatus(client *kubernetes.Clientset, addresses []string) (err error)

type Sync added in v1.7.1

type Sync struct {
	Service *corev1.Service
	Ingress *store.Ingress
}

type UpdateStatus added in v1.7.1

type UpdateStatus func(service store.Service, ingresses []*store.Ingress)

func NewStatusIngressUpdater added in v1.7.11

func NewStatusIngressUpdater(client *kubernetes.Clientset, k store.K8s, class string, emptyClass bool) UpdateStatus

Jump to

Keyboard shortcuts

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