traffic

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AnnotationManagedHosts = "kuadrant.io/managed-hosts"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateOrUpdateTraffic

type CreateOrUpdateTraffic func(ctx context.Context, i Interface) error

type DeleteTraffic

type DeleteTraffic func(ctx context.Context, i Interface) error

type Ingress

type Ingress struct {
	*networkingv1.Ingress
}

func (*Ingress) AddManagedHost

func (a *Ingress) AddManagedHost(h string) error

func (*Ingress) AddTLS

func (a *Ingress) AddTLS(host string, secret *corev1.Secret)

func (*Ingress) ExposesOwnController

func (a *Ingress) ExposesOwnController() bool

func (*Ingress) GetCacheKey

func (a *Ingress) GetCacheKey() string

func (*Ingress) GetDNSTargets

func (a *Ingress) GetDNSTargets() ([]kuadrantv1.Target, error)

GetDNSTargets will return the LB hosts and or IPs from the the Ingress object associated with the cluster they came from

func (*Ingress) GetHosts

func (a *Ingress) GetHosts() []string

func (*Ingress) GetKind

func (a *Ingress) GetKind() string

func (*Ingress) GetNamespaceName

func (a *Ingress) GetNamespaceName() types.NamespacedName

func (*Ingress) GetSpec

func (a *Ingress) GetSpec() interface{}

func (*Ingress) GetTLS

func (a *Ingress) GetTLS() []TLSConfig

func (*Ingress) GetWebhookConfigurations

func (a *Ingress) GetWebhookConfigurations(host string, caBundle []byte) ([]*admissionv1.ValidatingWebhookConfiguration, []*admissionv1.MutatingWebhookConfiguration)

func (*Ingress) HasTLS

func (a *Ingress) HasTLS() bool

func (*Ingress) RemoveTLS

func (a *Ingress) RemoveTLS(hosts []string)

func (*Ingress) String

func (a *Ingress) String() string

type Interface

type Interface interface {
	runtime.Object
	metav1.Object
	AddManagedHost(h string) error
	GetKind() string
	GetHosts() []string
	GetCacheKey() string
	GetNamespaceName() types.NamespacedName
	AddTLS(host string, secret *corev1.Secret)
	HasTLS() bool
	GetTLS() []TLSConfig
	RemoveTLS(host []string)
	GetSpec() interface{}
	GetDNSTargets() ([]kuadrantv1.Target, error)
	GetWebhookConfigurations(host string, caBundle []byte) ([]*admissionv1.ValidatingWebhookConfiguration, []*admissionv1.MutatingWebhookConfiguration)
	ExposesOwnController() bool
}

func NewIngress

func NewIngress(i *networkingv1.Ingress) Interface

type Pending

type Pending struct {
	Rules []networkingv1.IngressRule `json:"rules"`
}

type TLSConfig

type TLSConfig struct {
	Hosts      []string
	SecretName string
}

Jump to

Keyboard shortcuts

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