<p>I try to patch a deployment with the following command:</p>

<pre><code>kubectl patch deployment spin-clouddriver -n spinnaker --type='json' -p='[{"op": "add", "path": "/spec/spec/containers/0/volumeMounts", "value": {"mountPath": "/etc/ssl/certs/java/cacerts", "subPath": "cacerts", "name": "cacerts"}}]'
</code></pre>

<p>which results in</p>

<pre><code>The  "" is invalid
</code></pre>

<p>I don't see where is the error nor do I see how the message helps me to find the problem. Any hints?</p>

<p>The correct path is <code>"path": "/spec/template/spec/containers/0/volumeMounts</code>.  There was missing template key.  </p>
