kind: ConfigMap
apiVersion: v1
metadata:
    name: gitlab-migrations
    namespace: gitlab
    selfLink: /api/v1/namespaces/gitlab/configmaps/gitlab-migrations
    uid: 98061885-398b-11ea-b115-42010a8001d6
    resourceVersion: '2016118'
    creationTimestamp: '2020-01-18T00:43:50Z'
    labels:
        app: migrations
        chart: migrations-2.6.5
        heritage: Helm
        release: gitlab
data:
    configure: |
        set -e
        config_dir="/init-config"
        secret_dir="/init-secrets"

        for secret in postgres rails-secrets migrations gitaly ; do
          mkdir -p "${secret_dir}/${secret}"
          cp -v -r -L "${config_dir}/${secret}/." "${secret_dir}/${secret}/"
        done
        for secret in redis minio objectstorage ldap omniauth smtp ; do
          if [ -e "${config_dir}/${secret}" ]; then
            mkdir -p "${secret_dir}/${secret}"
            cp -v -r -L "${config_dir}/${secret}/." "${secret_dir}/${secret}/"
          fi
        done
    database.yml.erb: |
        production:
          adapter: postgresql
          encoding: unicode
          database: gitlabhq_production
          pool: 10
          username: gitlab
          password: "<%= File.read("/etc/gitlab/postgres/psql-password").strip.dump[1..-2] %>"
          host: "gitlab-postgresql"
          port: 5432
          prepared_statements: false
          # load_balancing:
          #   hosts:
          #     - host1.example.com
          #     - host2.example.com      
    gitlab.yml.erb: |
        production: &base
          gitlab:
          gitaly:
            client_path: /home/git/gitaly/bin
            token: "<%= File.read('/etc/gitlab/gitaly/gitaly_token').strip.dump[1..-2] %>"
          repositories:
            storages: # You must have at least a `default` storage path.
              default:
                path: /var/opt/gitlab/repo
                gitaly_address: tcp://gitlab-gitaly-0.gitlab-gitaly.gitlab:8075
              
          
    resque.yml.erb: |
        production:
          # Redis (single instance)
          url: redis://:<%= URI.escape(File.read("/etc/gitlab/redis/password").strip) %>@gitlab-redis:6379
          id:

