Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MetaMatch2HttpHeaderMatch ¶
func MetaMatch2HttpHeaderMatch(matchCrd *userapi.MetaRouteMatch) []*httproute.HeaderMatcher
MetaMatch2HttpHeaderMatch converts MetaMatch to HttpHeaderMatch
Types ¶
type CacheMgr ¶
type CacheMgr struct { MetaRouterControllerClient client.Client // contains filtered or unexported fields }
CacheMgr contains the runtime configuration for the envoyFilter controller.
func NewCacheMgr ¶
func NewCacheMgr(store istiomodel.ConfigStore) *CacheMgr
NewCacheMgr creates a new controller instance based on the provided arguments.
func (*CacheMgr) Cache ¶
func (c *CacheMgr) Cache() cachev3.SnapshotCache
Cache return th route cache
func (*CacheMgr) ConfigUpdated ¶
func (c *CacheMgr) ConfigUpdated(prev, curr *istioconfig.Config, event istiomodel.Event)
ConfigUpdated sends a config change event to the pushChannel when Istio config changed
func (*CacheMgr) Run ¶
func (c *CacheMgr) Run(stop <-chan struct{})
Run until a signal is received, this function won't block
func (*CacheMgr) UpdateRoute ¶
func (c *CacheMgr) UpdateRoute()
UpdateRoute sends a config change event to the pushChannel when Meta Router changed
Click to show internal directories.
Click to hide internal directories.