repo_description: Ultralight, security-first service mesh for Kubernetes. Main repo for Linkerd 2.x.
repo_topics: cloud-native golang kubernetes linkerd rust service-mesh
code: package inject
  
  var tpl = `[
    {{- if .AddRootAnnotations }}
    {
      "op": "add",
      "path": "/metadata/annotations",
      "value": {}
    },
    {{- end }}
    {
      "op": "add",
      "path": "/metadata/annotations/config.linkerd.io~1opaque-ports",
      "value": "{{.OpaquePorts}}"
    }
  ]`
  