contour

package
v1.18.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentContour

func CurrentContour(ctx context.Context, cli client.Client, ns, name string) (*operatorv1alpha1.Contour, error)

CurrentContour returns the current Contour for the provided ns/name.

func EnsureFinalizer

func EnsureFinalizer(ctx context.Context, cli client.Client, contour *operatorv1alpha1.Contour) error

EnsureFinalizer ensures the finalizer is added to Contour.

func EnsureFinalizerRemoved

func EnsureFinalizerRemoved(ctx context.Context, cli client.Client, contour *operatorv1alpha1.Contour) error

EnsureFinalizerRemoved ensures the finalizer is removed from Contour.

func GatewayClassRefsExist

func GatewayClassRefsExist(ctx context.Context, cli client.Client, name string) ([]operatorv1alpha1.Contour, error)

GatewayClassRefsExist returns a list of Contours that reference a GatewayClass named name.

func MakeNodePorts added in v1.15.0

func MakeNodePorts(ports map[string]int) []operatorv1alpha1.NodePort

MakeNodePorts returns a nodeport slice using the ports key as the nodeport name and the ports value as the nodeport number.

func New

New makes a Contour object using the provided ns/name for the object's namespace/name, pubType for the network publishing type of Envoy, and Envoy container ports 8080/8443.

func OtherContoursExist

func OtherContoursExist(ctx context.Context, cli client.Client, contour *operatorv1alpha1.Contour) (bool, *operatorv1alpha1.ContourList, error)

OtherContoursExist lists Contour objects in all namespaces, returning the list and true if any exist other than contour.

func OtherContoursExistInSpecNs

func OtherContoursExistInSpecNs(ctx context.Context, cli client.Client, contour *operatorv1alpha1.Contour) (bool, error)

OtherContoursExistInSpecNs lists Contour objects in the same spec.namespace.name as contour, returning true if any exist.

func OwnerLabels added in v1.14.0

func OwnerLabels(contour *operatorv1alpha1.Contour) map[string]string

OwnerLabels returns owner labels for the provided contour.

func OwningSelector

func OwningSelector(contour *operatorv1alpha1.Contour) *metav1.LabelSelector

OwningSelector returns a label selector using "contour.operator.projectcontour.io/owning-contour-name" and "contour.operator.projectcontour.io/owning-contour-namespace" labels.

Types

type Config

type Config struct {
	Name         string
	Namespace    string
	SpecNs       string
	RemoveNs     bool
	Replicas     int32
	NetworkType  operatorv1alpha1.NetworkPublishingType
	NodePorts    []operatorv1alpha1.NodePort
	GatewayClass *string
}

Config is the configuration of a Contour.

Jump to

Keyboard shortcuts

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