<p>im trying to run flyway <code>docker image 7.3.2</code> against a postgres db on kubernetes:</p>
<p>When i run the job my output is:</p>
<pre><code>Flyway Community Edition 7.3.2 by Redgate
ERROR:
Unable to obtain connection from database (jdbc:postgresql://xxx.eu-west-2.rds.amazonaws.com:5432/xxx flyway.user=postgres flyway.password=****************) for user 'null': The server requested password-based authentication, but no password was provided.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
SQL State  : 08004
Error Code : 0
Message    : The server requested password-based authentication, but no password was provided.

Caused by: org.postgresql.util.PSQLException: The server requested password-based authentication, but no password was provided.
</code></pre>
<p>the settings it outputs are correct and should enable a connection.</p>
<p>I pass in my <code>flyway.conf</code> via a configmap which is:</p>
<pre><code>apiVersion: v1
kind: ConfigMap
metadata:
  name: flyway-configmap
data:
  flyway.conf:
    flyway.url=jdbc:postgresql://xxx.eu-west-2.rds.amazonaws.com:5432/xxx
    flyway.user=postgres
    flyway.password=xxx

</code></pre>
<p>anyone able to assist in what im doing wrong?</p>

Staggerlee011
<p>If that is literally your <code>ConfigMap</code>, then it is missing the <code>|</code> character after the <code>:</code> which would make that yaml key into <a href="https://yaml.org/spec/1.2/spec.html#style/block/literal" rel="nofollow noreferrer">a newline delimited scalar</a>. That theory also squares up with your error message showing that the <strong>entire thing</strong> is taken as the value of <code>flyway.url</code></p>
<p>What you want:</p>
<pre class="lang-yaml prettyprint-override"><code>  flyway.conf: |
    flyway.url=jdbc:postgresql://xxx.eu-west-2.rds.amazonaws.com:5432/xxx
    flyway.user=postgres
    flyway.password=xxx
</code></pre>
