Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hooks ¶
type Hooks struct {
// contains filtered or unexported fields
}
func (*Hooks) AddResourceSetHook ¶
func (h *Hooks) AddResourceSetHook(hook ResourceSetHook)
func (*Hooks) ResourceSetHooks ¶
func (h *Hooks) ResourceSetHooks() []ResourceSetHook
type ResourceSetHook ¶
type ResourceSetHook interface {
Modify(resourceSet *core_xds.ResourceSet, ctx xds_context.Context, proxy *core_xds.Proxy) error
}
ResourceSetHook is a way to modify XDS resources generated by Kuma Since resourceSet is an argument, you can add new, remove or modify the existing resources To support V2 and V3, search the resource set for typeUrls for proper version If you want to for example modify only inbound listeners, search for the resource origin of OriginInbound
WARNING: Please, be aware that Hooks are being called also in Ingress Dataplanes
and when method Modify is being called, the passed MeshContext inside xds_context.Context will be empty
Click to show internal directories.
Click to hide internal directories.