From 6e31feaa208621e2b3a4abcb841e94e756f34b2b Mon Sep 17 00:00:00 2001 From: Hao Liu <44379968+TheRealHaoLiu@users.noreply.github.com> Date: Wed, 13 Mar 2024 15:16:05 -0400 Subject: [PATCH] Add command when specifying args for postgres (#1765) When using args the container defaults to the entrypoint instead of command causing postgres to be in a crashloop --- roles/installer/templates/statefulsets/postgres.yaml.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/installer/templates/statefulsets/postgres.yaml.j2 b/roles/installer/templates/statefulsets/postgres.yaml.j2 index 754222116..859ee0f17 100644 --- a/roles/installer/templates/statefulsets/postgres.yaml.j2 +++ b/roles/installer/templates/statefulsets/postgres.yaml.j2 @@ -56,6 +56,7 @@ spec: {{ postgres_security_context_settings | to_nice_yaml | indent(12) }} {% endif %} {% if postgres_extra_args %} + command: ["run-postgresql"] args: {{ postgres_extra_args }} {% endif %} env: