<p>I'm receiving the following error when the runner is trying to retrieve a resource:</p>

<pre><code>checking failed -
Expected to find variables: git
</code></pre>

<p>my resource looks similar to:</p>

<pre><code>- name: resource-repo
  type: git
  source:
    uri: https://[url]
    branch: master
    tag_filter: '*'
    username: ((git.username))
    password: ((git.password))
</code></pre>

<p>my values.yaml for the helm chart includes:</p>

<pre><code>rbac:
  create: false

credentialManager:
  kubernetes:
    namespacePrefix: concourse
</code></pre>

<p>(regardless, the release name is concourse)</p>

<p>under namespace <code>concourse-main</code> i have the the secret: </p>

<pre><code>Details
Name: git
Namespace: concourse-main
Type: Opaque

Data
password:  bytes
username:  bytes 
</code></pre>

<p>further information:</p>

<ul>
<li>k8s 1.8.6</li>
<li>kops 1.8.1 </li>
<li>weavenet </li>
<li>Concourse 3.9.1</li>
</ul>

<p>Based on information from the <a href="https://github.com/kubernetes/charts/tree/master/stable/concourse#kubernetes-secrets" rel="nofollow noreferrer">documentation</a>:</p>

<blockquote>
  <p>By default, this chart will use Kubernetes Secrets as a credential manager. For a given Concourse team, a pipeline will look for secrets in a namespace named [namespacePrefix][teamName]. The namespace prefix is the release name hyphen by default, and can be overridden with the value <code>credentialManager.kubernetes.namespacePrefix</code>.</p>
</blockquote>

<p>In your configuration, I see the secret in a <a href="https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/" rel="nofollow noreferrer">namespace</a> of your secret is <code>concourse-main</code>, but a default <code>namespacePrefix</code> is <code>concourse</code>. </p>

<p>So, Concourse trying to get your secret from a wrong namespace.</p>

<p>You can fix it using two ways:</p>

<ol>
<li>Create a secret in the namespace <code>concourse</code>.</li>
<li>Change <code>namespacePrefix</code> to <code>concourse-main</code>.</li>
</ol>
