...

Source file src/github.com/linkerd/linkerd2/pkg/inject/annotation_patch.go

Documentation: github.com/linkerd/linkerd2/pkg/inject

     1  package inject
     2  
     3  var tpl = `[
     4    {{- if .AddRootAnnotations }}
     5    {
     6      "op": "add",
     7      "path": "/metadata/annotations",
     8      "value": {}
     9    },
    10    {{- end }}
    11    {
    12      "op": "add",
    13      "path": "/metadata/annotations/config.linkerd.io~1opaque-ports",
    14      "value": "{{.OpaquePorts}}"
    15    }
    16  ]`
    17  

View as plain text