operator

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GatewayAPIResources added in v1.15.0

func GatewayAPIResources() []schema.GroupVersionResource

GatewayAPIResources for Operator. The list omits TCP and UDP routes since they're unsupported by operator.

func GetOperatorScheme

func GetOperatorScheme() *runtime.Scheme

GetOperatorScheme returns a scheme with types supported by the operator.

Types

type Client added in v1.15.0

type Client struct {
	client.Client
	meta.RESTMapper
}

Clients holds the API clients required by Operator.

type Operator

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

Operator is the scaffolding for the contour operator. It sets up dependencies and defines the topology of the operator and its managed components, wiring them together. Operator knows what specific resource types should produce operator events.

func New

func New(cliCfg *rest.Config, opCfg *operatorconfig.Config) (*Operator, error)

New creates a new operator from cliCfg and opCfg.

func (*Operator) Start

func (o *Operator) Start(ctx context.Context, opCfg *operatorconfig.Config) error

Start creates Gateway API controllers (if configured) and starts the operator synchronously until a message is received from ctx.

Directories

Path Synopsis
controller

Jump to

Keyboard shortcuts

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