controller

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Controller.ingressClass is expected as the value
	IngressClassAnnotation = "kubernetes.io/ingress.class"
	// boolean is expected for the value
	IgnoreAnnotation = "ingress.statcan.gc.ca/ignore"
	// Comma seperated list of Gateways in <namespace>/<name> format
	GatewaysAnnotation = "ingress.statcan.gc.ca/gateways"
	// The value verified in IngressClass.spec.controller
	IngressIstioController = "ingress.statcan.gc.ca/ingress-istio-controller"
)

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller responds to new resources and applies the necessary configuration

func NewController

func NewController(
	kubeclientset kubernetes.Interface,
	istioclientset istio.Interface,
	clusterDomain string,
	defaultGateway string,
	scopedGateways bool,
	ingressClass string,
	defaultWeight int,
	ingressesInformer networkinginformers.IngressInformer,
	ingressClassesInformer networkinginformers.IngressClassInformer,
	servicesInformer corev1informers.ServiceInformer,
	virtualServicesInformer istionetworkinginformers.VirtualServiceInformer,
	gatewaysInformer istionetworkinginformers.GatewayInformer) *Controller

NewController creates a new Controller object.

func (*Controller) Run

func (c *Controller) Run(threadiness int, stopCh <-chan struct{}) error

Run runs the controller.

Jump to

Keyboard shortcuts

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