Skip to content

Commit e58cfa0

Browse files
highfly22potiuk
authored andcommitted
Cope with '%' in password when waiting for migrations (#12440)
(cherry picked from commit d4c3d32)
1 parent b5a8ca9 commit e58cfa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chart/templates/_helpers.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ server_tls_key_file = /etc/pgbouncer/server.key
380380
directory = os.path.join(package_dir, 'migrations')
381381
config = Config(os.path.join(package_dir, 'alembic.ini'))
382382
config.set_main_option('script_location', directory)
383-
config.set_main_option('sqlalchemy.url', settings.SQL_ALCHEMY_CONN)
383+
config.set_main_option('sqlalchemy.url', settings.SQL_ALCHEMY_CONN.replace('%', '%%'))
384384
script_ = ScriptDirectory.from_config(config)
385385
386386
timeout=60

0 commit comments

Comments
 (0)