ingress

package
v2.11.12 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: MIT Imports: 39 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	WatchAll(namespaces []string, stopCh <-chan struct{}) (<-chan interface{}, error)
	GetIngresses() []*netv1.Ingress
	GetIngressClasses() ([]*netv1.IngressClass, error)
	GetService(namespace, name string) (*corev1.Service, bool, error)
	GetSecret(namespace, name string) (*corev1.Secret, bool, error)
	GetEndpoints(namespace, name string) (*corev1.Endpoints, bool, error)
	UpdateIngressStatus(ing *netv1.Ingress, ingStatus []netv1.IngressLoadBalancerIngress) error
	GetServerVersion() *version.Version
}

Client is a client for the Provider master. WatchAll starts the watch of the Provider resources and updates the stores. The stores can then be accessed via the Get* functions.

type EndpointIngress

type EndpointIngress struct {
	IP               string `description:"IP used for Kubernetes Ingress endpoints." json:"ip,omitempty" toml:"ip,omitempty" yaml:"ip,omitempty"`
	Hostname         string `` /* 139-byte string literal not displayed */
	PublishedService string `` /* 165-byte string literal not displayed */
}

EndpointIngress holds the endpoint information for the Kubernetes provider.

type Provider

type Provider struct {
	Endpoint                  string           `` /* 158-byte string literal not displayed */
	Token                     string           `` /* 159-byte string literal not displayed */
	CertAuthFilePath          string           `` /* 194-byte string literal not displayed */
	Namespaces                []string         `` /* 134-byte string literal not displayed */
	LabelSelector             string           `` /* 162-byte string literal not displayed */
	IngressClass              string           `` /* 200-byte string literal not displayed */
	IngressEndpoint           *EndpointIngress `` /* 155-byte string literal not displayed */
	ThrottleDuration          ptypes.Duration  `` /* 163-byte string literal not displayed */
	AllowEmptyServices        bool             `` /* 181-byte string literal not displayed */
	AllowExternalNameServices bool             `` /* 185-byte string literal not displayed */
	// contains filtered or unexported fields
}

Provider holds configurations of the provider.

func (*Provider) Init

func (p *Provider) Init() error

Init the provider.

func (*Provider) Provide

func (p *Provider) Provide(configurationChan chan<- dynamic.Message, pool *safe.Pool) error

Provide allows the k8s provider to provide configurations to traefik using the given configuration channel.

func (*Provider) SetRouterTransform added in v2.10.2

func (p *Provider) SetRouterTransform(routerTransform k8s.RouterTransform)

type RouterConfig

type RouterConfig struct {
	Router *RouterIng `json:"router,omitempty"`
}

RouterConfig is the router's root configuration from annotations.

type RouterIng

type RouterIng struct {
	PathMatcher string                   `json:"pathMatcher,omitempty"`
	EntryPoints []string                 `json:"entryPoints,omitempty"`
	Middlewares []string                 `json:"middlewares,omitempty"`
	Priority    int                      `json:"priority,omitempty"`
	TLS         *dynamic.RouterTLSConfig `json:"tls,omitempty" label:"allowEmpty"`
}

RouterIng is the router's configuration from annotations.

func (*RouterIng) SetDefaults

func (r *RouterIng) SetDefaults()

SetDefaults sets the default values.

type ServiceConfig

type ServiceConfig struct {
	Service *ServiceIng `json:"service,omitempty"`
}

ServiceConfig is the service's root configuration from annotations.

type ServiceIng

type ServiceIng struct {
	ServersScheme    string          `json:"serversScheme,omitempty"`
	ServersTransport string          `json:"serversTransport,omitempty"`
	PassHostHeader   *bool           `json:"passHostHeader"`
	Sticky           *dynamic.Sticky `json:"sticky,omitempty" label:"allowEmpty"`
	NativeLB         bool            `json:"nativeLB,omitempty"`
}

ServiceIng is the service's configuration from annotations.

func (*ServiceIng) SetDefaults

func (s *ServiceIng) SetDefaults()

SetDefaults sets the default values.

Jump to

Keyboard shortcuts

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