From a129d00e1589acc7dba8162d3e7308b06e06b593 Mon Sep 17 00:00:00 2001 From: Andrei Kvapil Date: Fri, 13 Feb 2026 11:01:19 +0100 Subject: [PATCH] fix(chart): cast metadata.id to string for regexMatch in physical_links_info After the metadata extraction refactor in 2b5746e, metadata fields are stored as interface{} in map[string]interface{}. The regexMatch Sprig function strictly requires a string argument, causing template rendering to fail with "expected string; got interface {}". Co-Authored-By: Claude Signed-off-by: Andrei Kvapil --- charts/talm/templates/_helpers.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/talm/templates/_helpers.tpl b/charts/talm/templates/_helpers.tpl index 40d27e84..7fe9fbb7 100644 --- a/charts/talm/templates/_helpers.tpl +++ b/charts/talm/templates/_helpers.tpl @@ -85,7 +85,7 @@ {{- define "talm.discovered.physical_links_info" }} # -- Discovered interfaces: {{- range (lookup "links" "" "").items }} -{{- if and .spec.busPath (regexMatch "^(eno|eth|enp|enx|ens)" .metadata.id) }} +{{- if and .spec.busPath (regexMatch "^(eno|eth|enp|enx|ens)" (.metadata.id | toString)) }} # {{ .metadata.id }}: # hardwareAddr:{{ .spec.hardwareAddr }} # busPath: {{ .spec.busPath }}