ingress

package
v0.0.0-...-a67e8b1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// StatusReady represents status is ready
	StatusReady = "Ready"
	// StatusSynced represents status is synced, this mean the controller has reconciled but not ready
	StatusSynced = "Synced"
)
View Source
const TypeContour = "contour"

TypeContour is a type of route implementation using [contour ingress](https://github.com/projectcontour/contour)

View Source
const TypeNginx = "nginx"

TypeNginx is a type of route implementation using [Nginx-Ingress](https://github.com/kubernetes/ingress-nginx)

Variables

This section is empty.

Functions

This section is empty.

Types

type Contour

type Contour struct {
	Client client.Client
}

Contour is Contour ingress implementation

func (*Contour) CheckStatus

func (n *Contour) CheckStatus(routeTrait *standardv1alpha1.Route) (string, []runtimev1alpha1.Condition)

CheckStatus will check status of the ingress

func (*Contour) Construct

func (*Contour) Construct(routeTrait *standardv1alpha1.Route) []*v1beta1.Ingress

Construct will construct ingress from route

type Nginx

type Nginx struct {
	Client client.Client
}

Nginx is nginx ingress implementation

func (*Nginx) CheckStatus

func (n *Nginx) CheckStatus(routeTrait *standardv1alpha1.Route) (string, []runtimev1alpha1.Condition)

CheckStatus will check status of the ingress

func (*Nginx) Construct

func (*Nginx) Construct(routeTrait *standardv1alpha1.Route) []*v1beta1.Ingress

Construct will construct ingress from route

type RouteIngress

type RouteIngress interface {
	Construct(routeTrait *standardv1alpha1.Route) []*v1beta1.Ingress
	CheckStatus(routeTrait *standardv1alpha1.Route) (string, []runtimev1alpha1.Condition)
}

RouteIngress is an interface of route ingress implementation

func GetRouteIngress

func GetRouteIngress(provider string, client client.Client) (RouteIngress, error)

GetRouteIngress will get real implementation from type, we could support more in the future.

Jump to

Keyboard shortcuts

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