From 858b2c91b044c6fcadfc0a4d635be67160c4d3b8 Mon Sep 17 00:00:00 2001 From: yinyic <71737798+yinyic@users.noreply.github.com> Date: Mon, 17 Oct 2022 13:35:06 -0700 Subject: [PATCH] Update defaultServiceConnectIfName to meet new CNI API spec (#3434) --- agent/ecscni/types_linux.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/agent/ecscni/types_linux.go b/agent/ecscni/types_linux.go index b4b943d9f8a..6d6ce353fb7 100644 --- a/agent/ecscni/types_linux.go +++ b/agent/ecscni/types_linux.go @@ -32,7 +32,8 @@ const ( // defaultServiceConnectIfName is the default ifname used for invoking ServiceConnect CNI plugin. // Even though the actual SC netns configuration does not require IfName, we still need to pass in a placeholder // value because IfName is a mandatory field to invoke any CNI plugin. - defaultServiceConnectIfName = "ecs-serviceconnect" + // Additionally, the API spec requires that ifName length to be <= 15 chars. + defaultServiceConnectIfName = "ecs-sc" // ECSIPAMPluginName is the binary of the ipam plugin ECSIPAMPluginName = "ecs-ipam" // ECSBridgePluginName is the binary of the bridge plugin