gateway

package
v0.13.0-rc Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: Apache-2.0 Imports: 28 Imported by: 0

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 of the gateway resource

func ReapplyUpdates added in v0.8.2

func ReapplyUpdates(client gwclient.Interface, gw *v1alpha1.Gateway) error

ReapplyUpdates to gateway resource

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 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