...

Package injector

import "github.com/linkerd/linkerd2/viz/tap/injector"
Overview
Index

Overview ▾

func Main

func Main(args []string)

Main executes the tap-injector subcommand

func Mutate

func Mutate(tapSvcName string) webhook.Handler

Mutate mutates an AdmissionRequest and adds the LINKERD2_PROXY_TAP_SVC_NAME env var to a pod's proxy container if tap is not disabled via annotation on the pod or the namespace.

type Params

Params holds the values used in the patch template.

type Params struct {
    ProxyPath       string
    ProxyTapSvcName string
}