Documentation
¶
Index ¶
Constants ¶
const (
// GatewayConfigName is the config map name for the gateway configuration.
GatewayConfigName = "config-gateway"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Network *networkcfg.Config GatewayPlugin *GatewayPlugin }
Config is the configuration for the route reconciler.
func FromContext ¶
FromContext obtains a Config injected into the passed context.
func FromContextOrDefaults ¶
FromContextOrDefaults is like FromContext, but when no Config is attached it returns a Config populated with the defaults for each of the Config fields.
func (*Config) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Config.
func (*Config) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Gateway ¶
type Gateway struct { types.NamespacedName Class string Service *types.NamespacedName SupportedFeatures sets.Set[features.FeatureName] }
Note deepcopy gen is broken for sets.Set[features.SupportedFeatures] So I've disabled the generator in this package for now
func (*Gateway) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Gateway.
func (*Gateway) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GatewayPlugin ¶ added in v0.41.0
GatewayPlugin specifies which Gateways are used for external/local traffic
func FromConfigMap ¶ added in v0.41.0
func FromConfigMap(cm *corev1.ConfigMap) (*GatewayPlugin, error)
FromConfigMap creates a GatewayPlugin config from the supplied ConfigMap
func (*GatewayPlugin) DeepCopy ¶ added in v0.41.0
func (in *GatewayPlugin) DeepCopy() *GatewayPlugin
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GatewayPlugin.
func (*GatewayPlugin) DeepCopyInto ¶ added in v0.41.0
func (in *GatewayPlugin) DeepCopyInto(out *GatewayPlugin)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GatewayPlugin) ExternalGateway ¶ added in v0.41.0
func (g *GatewayPlugin) ExternalGateway() Gateway
func (*GatewayPlugin) LocalGateway ¶ added in v0.41.0
func (g *GatewayPlugin) LocalGateway() Gateway
type Store ¶
type Store struct {
*configmap.UntypedStore
}
Store is a typed wrapper around configmap.Untyped store to handle our configmaps.
+k8s:deepcopy-gen=false
func NewStore ¶
NewStore creates a configmap.UntypedStore based config store.
logger must be non-nil implementation of configmap.Logger (commonly used loggers conform)
onAfterStore is a variadic list of callbacks to run after the ConfigMap has been processed and stored.
See also: configmap.NewUntypedStore().