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 ¶
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
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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.