Rajvir Jhawar
10/10/2022, 1:21 PM"path": "/spec/template/spec/containers/0/env/-"
Which means the path for the volume mount should be:
"path": "/spec/template/spec/containers/0/volumeMounts/-"
When i use that path it doesn't work, any ideas?Anna Geller
10/21/2022, 12:56 PMChristopher Boyd
10/21/2022, 3:09 PMspec:
containers:
- image: <http://registry.k8s.io/test-webserver|registry.k8s.io/test-webserver>
name: test-container
volumeMounts:
- mountPath: /test-ebs
name: test-volume
so I think a patch might look like:
'{"spec":{"containers":{"volumeMounts":{"mountPath":"/test","name":"test-volume"}}}}'
p='[{"op": "replace", "path": "/spec/template/spec/containers/0/volumeMounts", "value": [{"mountPath": "/test-ebs", "name": "test-volume"}]}]'
Anna Geller
10/21/2022, 3:40 PMRajvir Jhawar
10/21/2022, 4:07 PM