Skip to content

Commit

Permalink
fix trimLabelValue
Browse files Browse the repository at this point in the history
  • Loading branch information
and-es committed Jul 16, 2024
1 parent 80d8483 commit 6791dcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/actions.github.com/resourcebuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6791dcf

Please sign in to comment.