<p>I want to deploy airflow in Openshift.</p>
<p>I am using this values.yaml: <a href="https://github.com/bitnami/charts/blob/master/bitnami/airflow/values.yaml" rel="nofollow noreferrer">https://github.com/bitnami/charts/blob/master/bitnami/airflow/values.yaml</a></p>
<p>I want to clone my dag files from the Bitbucket repository of my company.</p>
<p>I am modifying the /values.yaml to achieve that:</p>
<pre><code>  dags:
    ## Enable in order to download DAG files from git repositories.
    ##
    enabled: true
    repositories:
      - repository: 
        branch: master
        name: dags
        path: docker-image/dags
</code></pre>
<p>in which part should I insert the info about the secrets in this values.yaml?</p>

Bruno Justino Praciano
<p>First of all, your <code>values.yaml</code> file should have <code>git</code> at the beggining:</p>
<pre><code>git:
  dags:
    ## Enable in order to download DAG files from git repositories.
    ##
    enabled: true
    repositories:
      - repository: 
        branch: master
        name: dags
        path: docker-image/dags
</code></pre>
<p>I assume you have a private repository and you want <code>airflow</code> to access it.<br />
As you can see in the <a href="https://github.com/bitnami/charts/tree/master/bitnami/airflow#load-dag-files" rel="nofollow noreferrer">Bitnami Apache Airflow Helm chart documentation</a>:</p>
<blockquote>
<p>If you use a private repository from GitHub, a possible option to clone the files is using a Personal Access Token and using it as part of the URL: https://USERNAME:PERSONAL_ACCESS_TOKEN@github.com/USERNAME/REPOSITORY</p>
</blockquote>
<p>It's about <code>GitHub</code> but I belive it also works with <code>Bitbucket</code>.</p>
<p>Personal access token can be used in <code>Bitbucket Data Center</code> and <code>Server</code>. You can find out how to create it in this <a href="https://confluence.atlassian.com/bitbucketserver/personal-access-tokens-939515499.html" rel="nofollow noreferrer">Personal access tokens documentation</a>.</p>
<p><strong>NOTE:</strong> If you use <code>Bitbucket Cloud</code> it is not possible to create personal access token but you can create <a href="https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/" rel="nofollow noreferrer">app password</a> instead ( look at <a href="https://community.atlassian.com/t5/Bitbucket-questions/Personal-Access-Token-for-Bitbucket-Cloud/qaq-p/677663" rel="nofollow noreferrer">Personal Access Token for Bitbucket Cloud?</a>).<br />
I have <code>Bitbucket Cloud</code> and tested this scenario with the app password and it works as expected.</p>
