/
TestWebhookInject_replace_backwards_compat.patch
70 lines (70 loc) · 1.36 KB
/
TestWebhookInject_replace_backwards_compat.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
[
{
"op": "remove",
"path": "/spec/initContainers/0"
},
{
"op": "remove",
"path": "/spec/containers/0"
},
{
"op": "remove",
"path": "/spec/volumes/1"
},
{
"op": "remove",
"path": "/spec/volumes/0"
},
{
"op": "add",
"path": "/spec/initContainers/-",
"value": {
"name": "istio-init",
"image": "example.com/init:latest",
"resources": {}
}
},
{
"op": "add",
"path": "/spec/containers/-",
"value": {
"name": "istio-proxy",
"image": "example.com/proxy:latest",
"resources": {}
}
},
{
"op": "add",
"path": "/spec/volumes/-",
"value": {
"name": "istio-envoy",
"emptyDir": {
"medium": "Memory"
}
}
},
{
"op": "add",
"path": "/spec/volumes/-",
"value": {
"name": "istio-certs",
"secret": {
"secretName": "istio.default"
}
}
},
{
"op": "add",
"path": "/spec/imagePullSecrets",
"value": [
{
"name": "istio-image-pull-secrets"
}
]
},
{
"op": "replace",
"path": "/metadata/annotations/sidecar.istio.io~1status",
"value": "{\"version\":\"unit-test-fake-version\",\"initContainers\":[\"istio-init\"],\"containers\":[\"istio-proxy\"],\"volumes\":[\"istio-envoy\",\"istio-certs\"],\"imagePullSecrets\":[\"istio-image-pull-secrets\"]}"
}
]