title: Kubernetes Helm bash command : bash: {"message":: command not found
body: <p>I'm trying to run a curl command in my helm chart that triggers a lambda. If I run my lambda on localhost and hit it with a curl from command line then it works perfectly. However, if I deploy the lambda and try to hit it the way it would work on production, by running through my helm chart, it breaks with the following error :</p>
  <p>bash: {&quot;message&quot;:: command not found</p>
  <p>Here is the helm chart I created:</p>
  <pre><code>apiVersion: batch/v1
  kind: Job
  metadata:
    name: clean-receiver-list
  spec:
    template:
      spec:
        initContainers:
        - name: check-author
          image: &quot;{{ .Values.global.utils.repository }}:{{ .Values.global.utils.imageTag }}&quot;
          imagePullPolicy: {{ .Values.global.utils.pullPolicy }}
          command: ['bash', '-c', 'while [ $(curl -sw &quot;%{http_code}&quot; &quot;http://{{ .Release.Name }}-stuff/healthcheck&quot; -o /dev/null) -ne 200 ]; do sleep 15; done' ]
        containers:
          - name: clean-receiver-list
            image: &quot;{{ .Values.global.utils.repository }}:{{ .Values.global.utils.imageTag }}&quot;
            command: ['bash',  '-c', '$(curl -d {&quot;podNamespace&quot;: &quot;{{ .Release.Name }}&quot;} &quot;https://mylambda/runTask&quot;)']
        restartPolicy: Never
    backoffLimit: 4
  </code></pre>
  <p>So it is the second curl command with my deployed lambda that is breaking.</p>