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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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 {