From 08996a49c771844b592ab207e45cd23c66dbacb4 Mon Sep 17 00:00:00 2001 From: woz5999 Date: Tue, 16 Apr 2024 21:35:57 +0000 Subject: [PATCH] backport of commit f20395b795f60082516f1875d78037beef76b16f --- .../connect-inject/webhookv2/consul_dataplane_sidecar_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control-plane/connect-inject/webhookv2/consul_dataplane_sidecar_test.go b/control-plane/connect-inject/webhookv2/consul_dataplane_sidecar_test.go index 79ec3127c1..1b3dcc0493 100644 --- a/control-plane/connect-inject/webhookv2/consul_dataplane_sidecar_test.go +++ b/control-plane/connect-inject/webhookv2/consul_dataplane_sidecar_test.go @@ -229,7 +229,7 @@ func TestHandlerConsulDataplaneSidecar(t *testing.T) { require.Equal(t, container.Env[4].Value, "$(POD_NAME)") require.Equal(t, container.Env[5].Name, "DP_CREDENTIAL_LOGIN_META") require.Equal(t, container.Env[5].Value, "pod=$(POD_NAMESPACE)/$(POD_NAME)") - require.Equal(t, container.Env[6].Name, "HOST_IP") + require.Equal(t, container.Env[7].Name, "HOST_IP") }) } }