gateway

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2020 License: Apache-2.0 Imports: 31 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	//LabelControllerInstanceID is the label which allows to separate gateways among multiple running controllers.
	LabelControllerInstanceID = gateway.FullName + "/gateway-controller-instanceid"
	// LabelGatewayKeyPhase is a label applied to gateways to indicate the current phase of the controller (for filtering purposes)
	LabelPhase = gateway.FullName + "/phase"
)

Labels

Variables

This section is empty.

Functions

func PersistUpdates

func PersistUpdates(client gwclient.Interface, gw *v1alpha1.Gateway, log *logrus.Logger) (*v1alpha1.Gateway, error)

PersistUpdates persists the updates for the gateway object.

func Validate

func Validate(gatewayObj *v1alpha1.Gateway) error

Validate validates the gateway resource.

Types

type Controller added in v0.13.0

type Controller struct {
	// ConfigMap is the name of the config map in which to derive configuration of the controller
	ConfigMap string
	// Namespace for controller
	Namespace string
	// Config is the controller's configuration
	Config ControllerConfig
	// contains filtered or unexported fields
}

Controller listens for new gateways and hands off handling of each gateway controller on the queue to the operator

func NewGatewayController

func NewGatewayController(rest *rest.Config, configMap, namespace, clientImage string, gatewayImages map[apicommon.EventSourceType]string) *Controller

NewGatewayController creates a new controller

func (*Controller) ResyncConfig added in v0.13.0

func (c *Controller) ResyncConfig(namespace string) error

ResyncConfig reloads the gateway-controller config from the configmap

func (*Controller) Run added in v0.13.0

func (c *Controller) Run(ctx context.Context, threads int)

Run processes the gateway resources on the controller's queue

type ControllerConfig added in v0.13.0

type ControllerConfig struct {
	// InstanceID is a label selector to limit the controller's watch of gateway to a specific instance.
	InstanceID string
	// Namespace is a label selector filter to limit controller's watch to specific namespace
	Namespace string
}

ControllerConfig contain the configuration settings for the controller

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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