@@ -1304,7 +1304,7 @@ func TestEC2InstanceMetadataCache_buildENITags(t *testing.T) {
1304
1304
instanceID : "i-xxxxx" ,
1305
1305
},
1306
1306
want : map [string ]string {
1307
- "node.k8s.amazonaws.com/instance_id" : "i-xxxxx" ,
1307
+ eniNodeTagKey : "i-xxxxx" ,
1308
1308
},
1309
1309
},
1310
1310
{
@@ -1314,9 +1314,9 @@ func TestEC2InstanceMetadataCache_buildENITags(t *testing.T) {
1314
1314
clusterName : "awesome-cluster" ,
1315
1315
},
1316
1316
want : map [string ]string {
1317
- "node.k8s.amazonaws.com/instance_id" : "i-xxxxx" ,
1318
- "cluster.k8s.amazonaws.com/name" : "awesome-cluster" ,
1319
- "eks:eni:owner" : "amazon-vpc-cni" ,
1317
+ eniNodeTagKey : "i-xxxxx" ,
1318
+ eniClusterTagKey : "awesome-cluster" ,
1319
+ eniOwnerTagKey : eniOwnerTagValue ,
1320
1320
},
1321
1321
},
1322
1322
{
@@ -1329,9 +1329,9 @@ func TestEC2InstanceMetadataCache_buildENITags(t *testing.T) {
1329
1329
},
1330
1330
},
1331
1331
want : map [string ]string {
1332
- "node.k8s.amazonaws.com/instance_id" : "i-xxxxx" ,
1333
- "tagKey-1" : "tagVal-1" ,
1334
- "tagKey-2" : "tagVal-2" ,
1332
+ eniNodeTagKey : "i-xxxxx" ,
1333
+ "tagKey-1" : "tagVal-1" ,
1334
+ "tagKey-2" : "tagVal-2" ,
1335
1335
},
1336
1336
},
1337
1337
}
0 commit comments