ingress

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Class added in v0.1.0

func Class(configuration configuration.Configuration, version *version.Version) capsulewebhook.Handler

func Collision added in v0.1.0

func Collision(configuration configuration.Configuration) capsulewebhook.Handler

func Hostnames added in v0.1.0

func Hostnames(configuration configuration.Configuration) capsulewebhook.Handler

func NewIngressClassForbidden

func NewIngressClassForbidden(class string, spec api.DefaultAllowedListSpec) error

func NewIngressClassNotValid

func NewIngressClassNotValid(class string, spec api.DefaultAllowedListSpec) error

func NewIngressClassUndefined added in v0.2.0

func NewIngressClassUndefined(spec api.DefaultAllowedListSpec) error

func NewIngressHostnameCollision added in v0.0.5

func NewIngressHostnameCollision(hostname string) error

func NewIngressHostnamesNotValid added in v0.0.4

func NewIngressHostnamesNotValid(invalidHostnames []string, notMatchingHostnames []string, spec api.AllowedListSpec) error

func TenantFromIngress added in v0.2.0

func TenantFromIngress(ctx context.Context, c client.Client, ingress Ingress) (*capsulev1beta2.Tenant, error)

func Wildcard added in v0.1.1

func Wildcard() capsulewebhook.Handler

Types

type Extension

type Extension struct {
	*extensionsv1beta1.Ingress
}

func (Extension) HostnamePathsPairs added in v0.1.0

func (e Extension) HostnamePathsPairs() (pairs map[string]sets.Set[string])

func (Extension) IngressClass

func (e Extension) IngressClass() (res *string)

func (Extension) Name added in v0.0.5

func (e Extension) Name() string

func (Extension) Namespace

func (e Extension) Namespace() string

func (Extension) SetIngressClass added in v0.2.0

func (e Extension) SetIngressClass(ingressClassName string)

func (Extension) SetNamespace added in v0.3.1

func (e Extension) SetNamespace(ns string)

type HostnamesList added in v0.1.0

type HostnamesList []string

func (HostnamesList) IsStringInList added in v0.1.0

func (h HostnamesList) IsStringInList(value string) (ok bool)

func (HostnamesList) Len added in v0.1.0

func (h HostnamesList) Len() int

func (HostnamesList) Less added in v0.1.0

func (h HostnamesList) Less(i, j int) bool

func (HostnamesList) Swap added in v0.1.0

func (h HostnamesList) Swap(i, j int)

type Ingress

type Ingress interface {
	IngressClass() *string
	Namespace() string
	Name() string
	HostnamePathsPairs() map[string]sets.Set[string]
	SetIngressClass(string)
	SetNamespace(string)
}

func FromRequest added in v0.2.0

func FromRequest(req admission.Request, decoder *admission.Decoder) (ingress Ingress, err error)

type NetworkingV1 added in v0.0.2

type NetworkingV1 struct {
	*networkingv1.Ingress
}

func (NetworkingV1) HostnamePathsPairs added in v0.1.0

func (n NetworkingV1) HostnamePathsPairs() (pairs map[string]sets.Set[string])

func (NetworkingV1) IngressClass added in v0.0.2

func (n NetworkingV1) IngressClass() (res *string)

func (NetworkingV1) Name added in v0.0.5

func (n NetworkingV1) Name() string

func (NetworkingV1) Namespace added in v0.0.2

func (n NetworkingV1) Namespace() string

func (NetworkingV1) SetIngressClass added in v0.2.0

func (n NetworkingV1) SetIngressClass(ingressClassName string)

func (NetworkingV1) SetNamespace added in v0.3.1

func (n NetworkingV1) SetNamespace(ns string)

type NetworkingV1Beta1 added in v0.0.2

type NetworkingV1Beta1 struct {
	*networkingv1beta1.Ingress
}

func (NetworkingV1Beta1) HostnamePathsPairs added in v0.1.0

func (n NetworkingV1Beta1) HostnamePathsPairs() (pairs map[string]sets.Set[string])

func (NetworkingV1Beta1) IngressClass added in v0.0.2

func (n NetworkingV1Beta1) IngressClass() (res *string)

func (NetworkingV1Beta1) Name added in v0.0.5

func (n NetworkingV1Beta1) Name() string

func (NetworkingV1Beta1) Namespace added in v0.0.2

func (n NetworkingV1Beta1) Namespace() string

func (NetworkingV1Beta1) SetIngressClass added in v0.2.0

func (n NetworkingV1Beta1) SetIngressClass(ingressClassName string)

func (NetworkingV1Beta1) SetNamespace added in v0.3.1

func (n NetworkingV1Beta1) SetNamespace(ns string)

Jump to

Keyboard shortcuts

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