From 3fe1830623bb8d660e5c599ac4970d6bf55ea26c Mon Sep 17 00:00:00 2001 From: Yannik Messerli Date: Mon, 18 Mar 2024 22:06:39 +0100 Subject: [PATCH] Remove wrong key lookup for service name in k8s labels Issue https://github.com/cilium/hubble-ui/issues/792. --- src/domain/__tests__/labels.ts | 5 ----- src/domain/labels.ts | 1 - 2 files changed, 6 deletions(-) diff --git a/src/domain/__tests__/labels.ts b/src/domain/__tests__/labels.ts index ebc899e7..00d634ef 100644 --- a/src/domain/__tests__/labels.ts +++ b/src/domain/__tests__/labels.ts @@ -66,9 +66,4 @@ describe('extract app name', () => { appNameTest(['k8s:app.kubernetes.io/name=EXPECTED_NAME'], 'EXPECTED_NAME'); }); - - test('random label without explicit appName', () => { - appNameTest(['k8s:random-app=random-name'], 'random-name'); - appNameTest(['k8s:random-name=random-app'], 'random-app'); - }); }); diff --git a/src/domain/labels.ts b/src/domain/labels.ts index 0468c731..b4947533 100644 --- a/src/domain/labels.ts +++ b/src/domain/labels.ts @@ -54,7 +54,6 @@ export class Labels { ]; public static readonly appNameNormalizedKeys = new Set([ - 'component', 'app', 'name', 'functionname',