From 6791dcf974b11bcc224b636bb36293c0d323a07e Mon Sep 17 00:00:00 2001 From: and-es <84567633+and-es@users.noreply.github.com> Date: Tue, 16 Jul 2024 16:19:19 +0900 Subject: [PATCH] fix trimLabelValue --- controllers/actions.github.com/resourcebuilder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/actions.github.com/resourcebuilder.go b/controllers/actions.github.com/resourcebuilder.go index 57fd725751..152eea6d7a 100644 --- a/controllers/actions.github.com/resourcebuilder.go +++ b/controllers/actions.github.com/resourcebuilder.go @@ -747,7 +747,7 @@ func trimLabelValue(val string) string { if len(val) > 63 { return val[:63-len(trimLabelVauleSuffix)] + trimLabelVauleSuffix } - return val + return strings.Trim(val, "-_.") } func (b *ResourceBuilder) mergeLabels(base, overwrite map[string]string) map[string]string {