hooks

package
v1.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL