From d01568a915c5d6656bdbf487cb80844b4bffb2d5 Mon Sep 17 00:00:00 2001 From: natemollica-dev Date: Fri, 2 Feb 2024 13:36:25 -0800 Subject: [PATCH] fix helpers.tpl consul.extraConfig from merge --> /consul/tmp/extra-config/extra-from-values.json | add labels to rolebinding for datadog secrets --- charts/consul/test/unit/server-statefulset.bats | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/consul/test/unit/server-statefulset.bats b/charts/consul/test/unit/server-statefulset.bats index 3dc9edd971..14f4a8a6e4 100755 --- a/charts/consul/test/unit/server-statefulset.bats +++ b/charts/consul/test/unit/server-statefulset.bats @@ -799,7 +799,7 @@ load _helpers local actual=$(echo "$annotations" | \ yq -r '."ad.datadoghq.com/consul.logs"' | tee /dev/stderr) - [ "${actual}" = "[source:consul consul_service:consul-server]" ] + [ "${actual}" = '[{"source": "consul","consul_service": "consul-server"}]' ] local consul_checks=$(echo "$annotations" | \ yq -r '."ad.datadoghq.com/consul.checks"' | tee /dev/stderr) @@ -842,7 +842,7 @@ load _helpers local actual=$(echo "$annotations" | \ yq -r '."ad.datadoghq.com/consul.logs"' | tee /dev/stderr) - [ "${actual}" = "[source:consul consul_service:consul-server]" ] + [ "${actual}" = '[{"source": "consul","consul_service": "consul-server"}]' ] local consul_checks=$(echo "$annotations" | \ yq -r '."ad.datadoghq.com/consul.checks"' | tee /dev/stderr)