diff --git a/flux/src/helm-releases/Inventory.tsx b/flux/src/helm-releases/Inventory.tsx index f4a8eebf2..ede47c693 100644 --- a/flux/src/helm-releases/Inventory.tsx +++ b/flux/src/helm-releases/Inventory.tsx @@ -271,10 +271,12 @@ function inventoryNameLink(item): JSX.Element { const pluralName = PluralName(kind); // Flux types - if (groupName.endsWith('toolkit.fluxcd.io')) { + const allowedDomain = 'toolkit.fluxcd.io'; + const groupNameParts = groupName.split('.'); + if (groupNameParts.length >= 3 && groupNameParts.slice(-2).join('.') === allowedDomain) { return ( = 3 && groupNameParts.slice(-2).join('.') === allowedDomain) { return (