gateway

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGatewayResourceContext added in v0.8.2

func NewGatewayResourceContext(gw *v1alpha1.Gateway, controller *GatewayController) gwResourceCtx

NewGatewayResourceContext returns new gwResourceCtx

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(gw *v1alpha1.Gateway) error

Validate validates the gateway resource. Exporting this function so that external APIs can use this to validate gateway resource.

Types

type GatewayController

type GatewayController struct {
	// EventSource is the name of the config map in which to derive configuration of the contoller
	ConfigMap string
	// Namespace for gateway controller
	Namespace string
	// Config is the gateway-controller gateway-controller-controller's configuration
	Config GatewayControllerConfig
	// contains filtered or unexported fields
}

GatewayController 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) *GatewayController

NewGatewayController creates a new Controller

func (*GatewayController) ResyncConfig

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

ResyncConfig reloads the gateway-controller config from the configmap

func (*GatewayController) Run

func (c *GatewayController) Run(ctx context.Context, gwThreads, eventThreads int)

Run executes the gateway-controller

type GatewayControllerConfig

type GatewayControllerConfig struct {
	// InstanceID is a label selector to limit the gateway-controller's watch of gateway jobs to a specific instance.
	InstanceID string

	// Namespace is a label selector filter to limit gateway-controller-controller's watch to specific namespace
	Namespace string
}

GatewayControllerConfig contain the configuration settings for the gateway-controller

Jump to

Keyboard shortcuts

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