<p>I have an image whose <code>ENTRYPOINT</code> is the following:</p>

<pre><code>TOKEN=$(gcloud auth print-identity-token)

curl -s -XGET -H "Authorization: Bearer $TOKEN"
</code></pre>

<p>And here is my <code>container</code> <code>spec</code> within a <code>Job</code> definition that invokes the above image:</p>

<pre><code>    spec:
      restartPolicy: OnFailure
      containers:
      - name:  pre-upgrade-job
        image: "my-image:0.0.1"
        args: ["https://some-url"]

</code></pre>

<p>However, invocation fails with:</p>

<pre><code>➢  k logs -f my-pod
curl: no URL specified!
curl: try 'curl --help' or 'curl --manual' for more information
</code></pre>

<p><strong>edit</strong>: Here is my <code>Dockerfile</code></p>

<pre><code>TOKEN=$(gcloud auth print-identity-token)

echo $1

curl -s -XGET -H "Authorization: Bearer $TOKEN"
</code></pre>

pkaramol
<p>For some reason it turns out it was en escaping issue.</p>

<p>The following worked </p>

<pre><code>spec:
  restartPolicy: OnFailure
  containers:
  - name:  pre-upgrade-job
    image: "my-image:0.0.1"
    args: 
     - "https://some-url"
</code></pre>
