ingress

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Configmaps
	Main = "main"
	// Frontends
	FrontendHTTP  = "http"
	FrontendHTTPS = "https"
	// Status
	ADDED    = store.ADDED
	DELETED  = store.DELETED
	ERROR    = store.ERROR
	EMPTY    = store.EMPTY
	MODIFIED = store.MODIFIED
	// MapFiles
	SNI         = "sni"
	HOST        = "host"
	PATH_EXACT  = "path-exact"
	PATH_PREFIX = "path-prefix"
)

nolint

Variables

This section is empty.

Functions

This section is empty.

Types

type Route

type Route struct {
	Namespace *store.Namespace
	Ingress   *store.Ingress
	Path      *store.IngressPath

	HAProxyRules   []haproxy.RuleID
	Host           string
	BackendName    string
	NewBackend     bool
	LocalBackend   bool
	SSLPassthrough bool
	TCPService     bool
	// contains filtered or unexported fields
}

func (*Route) SetBackendName added in v1.5.2

func (route *Route) SetBackendName() (err error)

SetBackendName checks if Ingress ServiceName and ServicePort exists and construct corresponding backend name NB: if sp.Name is available it should be used instead of sp.Port to avoid backends duplication

type Routes

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

func (*Routes) AddRoute

func (r *Routes) AddRoute(route *Route) (err error)

func (*Routes) Refresh

func (r *Routes) Refresh(c api.HAProxyClient, k store.K8s, mapFiles haproxy.Maps, certs *haproxy.Certificates) (reload bool, activeBackends map[string]struct{})

Jump to

Keyboard shortcuts

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