From a9903fc5d9a3690c3b1152f2435ed4ac5d705ab3 Mon Sep 17 00:00:00 2001 From: Sebastian Bernauer Date: Mon, 17 Nov 2025 09:36:14 +0100 Subject: [PATCH] test: Enable OPA logging in kuttl tests --- tests/templates/kuttl/opa-authorization/12-stop-opa.yaml.j2 | 3 +++ tests/templates/kuttl/smoke/09-install-opa.yaml.j2 | 3 +++ tests/templates/kuttl/smoke_aws/09-install-opa.yaml.j2 | 3 +++ 3 files changed, 9 insertions(+) diff --git a/tests/templates/kuttl/opa-authorization/12-stop-opa.yaml.j2 b/tests/templates/kuttl/opa-authorization/12-stop-opa.yaml.j2 index 85cdb030..9e11b388 100644 --- a/tests/templates/kuttl/opa-authorization/12-stop-opa.yaml.j2 +++ b/tests/templates/kuttl/opa-authorization/12-stop-opa.yaml.j2 @@ -14,5 +14,8 @@ spec: vectorAggregatorConfigMapName: vector-aggregator-discovery {% endif %} servers: + config: + logging: + enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }} roleGroups: default: {} diff --git a/tests/templates/kuttl/smoke/09-install-opa.yaml.j2 b/tests/templates/kuttl/smoke/09-install-opa.yaml.j2 index ac5a3b3c..dca1bebb 100644 --- a/tests/templates/kuttl/smoke/09-install-opa.yaml.j2 +++ b/tests/templates/kuttl/smoke/09-install-opa.yaml.j2 @@ -12,6 +12,9 @@ spec: vectorAggregatorConfigMapName: vector-aggregator-discovery {% endif %} servers: + config: + logging: + enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }} roleGroups: default: {} --- diff --git a/tests/templates/kuttl/smoke_aws/09-install-opa.yaml.j2 b/tests/templates/kuttl/smoke_aws/09-install-opa.yaml.j2 index ac5a3b3c..dca1bebb 100644 --- a/tests/templates/kuttl/smoke_aws/09-install-opa.yaml.j2 +++ b/tests/templates/kuttl/smoke_aws/09-install-opa.yaml.j2 @@ -12,6 +12,9 @@ spec: vectorAggregatorConfigMapName: vector-aggregator-discovery {% endif %} servers: + config: + logging: + enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }} roleGroups: default: {} ---