Sanitize labels ending in hyphen, underscore, and dot (#3664)

This commit is contained in:
&es
2025-02-18 23:15:39 +09:00
committed by GitHub
parent 68787beab5
commit 7ccc177b84

View File

@@ -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 {