Documentation ¶
Index ¶
Constants ¶
View Source
const ( DomainPrefix = "telepresence.getambassador.io/" InjectAnnotation = DomainPrefix + "inject-" + agentconfig.ContainerName ServiceNameAnnotation = DomainPrefix + "inject-service-name" ManualInjectAnnotation = DomainPrefix + "manually-injected" )
Variables ¶
View Source
var NewAgentInjectorFunc = NewAgentInjector //nolint:gochecknoglobals // extension point
View Source
var NewWatcherFunc = NewWatcher //nolint:gochecknoglobals // extension point
Functions ¶
func RegenerateAgentMaps ¶
RegenerateAgentMaps load the telepresence-agents config map, regenerates all entries in it, and then, if any of the entries changed, it updates the map.
func ServeMutator ¶
Types ¶
type AgentInjector ¶ added in v2.17.0
type AgentInjector interface { Inject(ctx context.Context, req *admission.AdmissionRequest) (p PatchOps, err error) Uninstall(ctx context.Context) }
func NewAgentInjector ¶ added in v2.17.0
func NewAgentInjector(ctx context.Context, agentConfigs Map) AgentInjector
NewAgentInjector creates a new agentInjector.
type Map ¶
type Map interface { Get(string, string) (agentconfig.SidecarExt, error) Run(context.Context) error Delete(context.Context, string, string) error Store(context.Context, agentconfig.SidecarExt, bool) error DeleteMapsAndRolloutAll(ctx context.Context) }
func NewWatcher ¶
type PatchOperation ¶ added in v2.17.0
type PatchOperation struct { Op string `json:"op"` Path string `json:"path"` Value any `json:"value,omitempty"` }
JSON patch, see https://tools.ietf.org/html/rfc6902 .
Click to show internal directories.
Click to hide internal directories.