util

package
v0.0.396 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IngressControllerNginxCommunity  ingressControllerType = "k8s.io/ingress-nginx"
	IngressControllerNginxEnterprise ingressControllerType = "nginx.org/ingress-controller"
	IngressControllerIstio           ingressControllerType = "istio.io/ingress-controller"
	IngressControllerTraefik         ingressControllerType = "traefik.io/ingress-controller"
	IngressControllerAmbassador      ingressControllerType = "getambassador.io/ingress-controller"
	IngressControllerALB             ingressControllerType = "ingress.k8s.aws/alb"
	IngressControllerNginxCodefresh  ingressControllerType = "k8s.io/ingress-nginx-codefresh"
)

Variables

Functions

func CreateIngress

func CreateIngress(opts *CreateIngressOptions) *netv1.Ingress

Types

type CreateIngressOptions

type CreateIngressOptions struct {
	Name             string
	Namespace        string
	IngressClassName string
	Annotations      map[string]string
	Host             string
	Paths            []IngressPath
}

type IngressController added in v0.0.322

type IngressController interface {
	Name() string
	Decorate(ingress *netv1.Ingress)
}

func GetController added in v0.0.322

func GetController(name string) IngressController

type IngressPath added in v0.0.112

type IngressPath struct {
	Path        string
	PathType    netv1.PathType
	ServiceName string
	ServicePort int32
}

Jump to

Keyboard shortcuts

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