diff --git a/roles/postgres/templates/postgres.statefulset.yaml.j2 b/roles/postgres/templates/postgres.statefulset.yaml.j2 index 35518dd8..4d5b871a 100644 --- a/roles/postgres/templates/postgres.statefulset.yaml.j2 +++ b/roles/postgres/templates/postgres.statefulset.yaml.j2 @@ -31,6 +31,9 @@ spec: app.kubernetes.io/managed-by: 'eda-operator' spec: securityContext: +{% if postgres_security_context_settings|length %} + {{ postgres_security_context_settings | to_nice_yaml | indent(8) }} +{% endif %} allowPrivilegeEscalation: false capabilities: drop: ["ALL"]