ingress

package
v1.11.10 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func HandleCfgMapAnnotations

func HandleCfgMapAnnotations(k store.K8s, h haproxy.HAProxy, a annotations.Annotations)

Types

type Ingress

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

func New

func New(resource *store.Ingress, class string, emptyClass bool, a annotations.Annotations) *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) GetAddresses added in v1.10.4

func (i Ingress) GetAddresses() []string

func (Ingress) Supported added in v1.10.4

func (i Ingress) Supported(k8s store.K8s, a annotations.Annotations) (supported bool)

Supported verifies if the IngressClass matches the ControllerClass and in such case returns true otherwise false

According to https://github.com/kubernetes/api/blob/master/networking/v1/types.go#L257 ingress.class annotation should have precedence over the IngressClass mechanism implemented in "networking.k8s.io".

func (*Ingress) Update

func (i *Ingress) Update(k store.K8s, h haproxy.HAProxy, a annotations.Annotations)

Update processes a Kubernetes ingress resource and configures HAProxy accordingly by creating corresponding backend, route and HTTP rules.

func (*Ingress) UpdateStatus

func (i *Ingress) UpdateStatus(client *kubernetes.Clientset) (err error)

type Sync

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

Jump to

Keyboard shortcuts

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