linkerd2/controller
Andrew Seigner 34d9eef03e
proxy injector: insert at end of arrays (#1881)
When using `--proxy-auto-inject` with Kuberntes `v1.9.11`, observed auto
injector incorrectly merging list elements rather than inserting new
ones. This issue was not reproducible on `v1.10.3`.

For example, this input:
```
spec:
  template:
    spec:
      containers:
      - name: vote-bot
        command:
        - emojivoto-vote-bot
```

Would yield:
```
spec:
  template:
    spec:
      containers:
      - name: linkerd-proxy
        command:
        - emojivoto-vote-bot
      - name: vote-bot
        command:
        - emojivoto-vote-bot
```

This change replaces json patch specs like
`/spec/template/spec/containers/0` with
`/spec/template/spec/containers/-`. The former is intended to insert at
the beggining of a list, the latter at the end. This also simplifies the
code a bit and more closely aligns with the intent of injecting at the
end of lists.

Signed-off-by: Andrew Seigner <siggy@buoyant.io>
2018-11-28 14:21:18 -08:00
..
api Add ListServices to controller public api (#1876) 2018-11-27 11:34:47 -08:00
ca Add ServiceProfile support to k8s utilities (#1758) 2018-10-12 09:35:11 -07:00
cmd Remove the proxy-api container (#1813) 2018-10-29 16:31:43 -07:00
gen Add ListServices to controller public api (#1876) 2018-11-27 11:34:47 -08:00
k8s Add ListServices to controller public api (#1876) 2018-11-27 11:34:47 -08:00
proxy-injector proxy injector: insert at end of arrays (#1881) 2018-11-28 14:21:18 -08:00
script/destination-client Remove the proxy-api container (#1813) 2018-10-29 16:31:43 -07:00
tap tap: Use nil-safe protobuf accessors (#1873) 2018-11-26 14:14:28 -08:00
Dockerfile Send metric labels in profile API (#1800) 2018-10-29 14:28:09 -07:00