From 0d8ae775726b82cd349972f528397c90ceae03a7 Mon Sep 17 00:00:00 2001 From: Jonny Carroll <159055372+jcarroll-ls@users.noreply.github.com> Date: Thu, 1 Aug 2024 23:10:38 +0100 Subject: [PATCH] Update security-agent.yaml.j2 Missing line break seems to cause the `compliance_config` variable to be indented and therefore placed within the `runtime_security_config` variable which leads to an incorrect configuration for CSM --- templates/security-agent.yaml.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/security-agent.yaml.j2 b/templates/security-agent.yaml.j2 index a763f032..b8ab0c0a 100644 --- a/templates/security-agent.yaml.j2 +++ b/templates/security-agent.yaml.j2 @@ -10,6 +10,7 @@ runtime_security_config: {{ runtime_security_config | to_nice_yaml }} {% endfilter %} {% endif %} + {% if compliance_config is defined and compliance_config | default({}, true) | length > 0 -%} compliance_config: {# The "first" option in indent() is only supported by jinja 2.10+