From 5b4f78993c4bac0fa77a85d8d14355447e0e7d12 Mon Sep 17 00:00:00 2001 From: Thomas Decaux Date: Wed, 2 Feb 2022 18:03:14 +0100 Subject: [PATCH] [APM] fix podLabels (#1521) * [APM] add podLabels * format with black Co-authored-by: jmlrt <8582351+jmlrt@users.noreply.github.com> --- apm-server/tests/apmserver_test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apm-server/tests/apmserver_test.py b/apm-server/tests/apmserver_test.py index d60007f3e..ce5e17aea 100644 --- a/apm-server/tests/apmserver_test.py +++ b/apm-server/tests/apmserver_test.py @@ -268,7 +268,9 @@ def test_adding_pod_labels(): """ r = helm_template(config) assert ( - r["deployment"][name]["metadata"]["labels"]["app.kubernetes.io/name"] + r["deployment"][name]["spec"]["template"]["metadata"]["labels"][ + "app.kubernetes.io/name" + ] == "apm-server" )