title: kubectl wait --for=condition=complete --timeout=30s
body: <p>I am trying to check the status of a pod using kubectl wait command through this <a href="https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#wait" rel="noreferrer">documentation</a>.
  Following is the command that i am trying </p>
  
  <pre><code>kubectl wait --for=condition=complete --timeout=30s -n d1 job/test-job1-oo-9j9kj
  </code></pre>
  
  <p>Following is the error that i am getting</p>
  
  <pre><code>Kubectl error: status.conditions accessor error: Failure is of the type string, expected map[string]interface{}
  </code></pre>
  
  <p>and my <code>kubectl -o json output can be accessed via this github</code> <a href="https://github.com/msraju2009/kubernetes-tests/blob/master/kubernetes-json-output.json" rel="noreferrer">link</a>.</p>
  
  <p>Can someone help me to fix the issue </p>