publish

package
v0.9.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidPattern           = errors.New("endpoint pattern is invalid")
	ErrSegmentExceededMaxLength = errors.New("segment exceeded maximum length of 63 characters")
	ErrParsedEndpointIsNil      = errors.New("parsed endpoint pattern and recieved nil")
)

Functions

func Ingress

func Ingress(req router.Request, svc *v1.ServiceInstance) (result []kclient.Object, _ error)

func IngressClassNameIfNoDefault

func IngressClassNameIfNoDefault(ctx context.Context, client kclient.Client) (*string, error)

IngressClassNameIfNoDefault returns an ingress class name if there is exactly one IngressClass and it is not set as the default. We return a pointer here because "" is not a valid value for ingressClassName and will cause the ingress to fail.

func ServiceLoadBalancer

func ServiceLoadBalancer(req router.Request, svc *v1.ServiceInstance) (result []kclient.Object, _ error)

func ValidateEndpointPattern

func ValidateEndpointPattern(pattern string) error

Types

type TLSCert

type TLSCert struct {
	Certificate     x509.Certificate `json:"certificate,omitempty"`
	SecretName      string           `json:"secret-name,omitempty"`
	SecretNamespace string           `json:"secret-namespace,omitempty"`
}

type Target

type Target struct {
	Port    int32  `json:"port,omitempty"`
	Service string `json:"service,omitempty"`
}

Jump to

Keyboard shortcuts

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