mirror of https://github.com/linkerd/linkerd2.git
24 lines
402 B
Go
24 lines
402 B
Go
package tapinjector
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/linkerd/linkerd2/pkg/inject"
|
|
)
|
|
|
|
var tpl = fmt.Sprintf(`[
|
|
{
|
|
"op": "add",
|
|
"path": "/metadata/annotations/viz.linkerd.io~1tap-enabled",
|
|
"value": "true"
|
|
},
|
|
{
|
|
"op": "add",
|
|
"path": "/spec/containers/{{.ProxyIndex}}/env/-",
|
|
"value": {
|
|
"name": "%s",
|
|
"value": "{{.ProxyTapSvcName}}"
|
|
}
|
|
}
|
|
]`, inject.TapSvcEnvKey)
|