Documentation ¶
Overview ¶
Package config holds the typed objects that define the schemas for assorted ConfigMap objects on which the Route controller depends.
Index ¶
Constants ¶
const (
// DomainConfigName is the config map name for the domain configuration.
DomainConfigName = "config-domain"
)
Variables ¶
var ( // DefaultDomain holds the domain that Route's live under by default // when no label selector-based options apply. DefaultDomain = "svc." + network.GetClusterDomainName() )
Functions ¶
Types ¶
type Config ¶
type Config struct { Domain *Domain GC *gc.Config Network *netcfg.Config Features *cfgmap.Features }
Config is the configuration for the route reconciler. +k8s:deepcopy-gen=false
func FromContext ¶
FromContext obtains a Config injected into the passed context.
func FromContextOrDefaults ¶ added in v0.18.0
FromContextOrDefaults is like FromContext, but when no Config is attached it returns a Config populated with the defaults for each of the Config fields.
type Domain ¶
type Domain struct { // Domains map from domain to label selector. If a route has // labels matching a particular selector, it will use the // corresponding domain. If multiple selectors match, we choose // the most specific selector. Domains map[string]*LabelSelector }
Domain maps domains to routes by matching the domain's label selectors to the route's labels.
func NewDomainFromConfigMap ¶
NewDomainFromConfigMap creates a Domain from the supplied ConfigMap
func (*Domain) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Domain.
func (*Domain) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LabelSelector ¶
LabelSelector represents map of {key,value} pairs. A single {key,value} in the map is equivalent to a requirement key == value. The requirements are ANDed.
func (*LabelSelector) DeepCopy ¶
func (in *LabelSelector) DeepCopy() *LabelSelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LabelSelector.
func (*LabelSelector) DeepCopyInto ¶
func (in *LabelSelector) DeepCopyInto(out *LabelSelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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().