Skip to content

Commit

Permalink
Further reduce the possibility of truncating (#267)
Browse files Browse the repository at this point in the history
Signed-off-by: Pierangelo Di Pilato <[email protected]>
  • Loading branch information
pierDipi authored Sep 11, 2024
1 parent bcef478 commit f4f38d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/konfluxgen/konfluxgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,8 @@ func Truncate(input interface{}) string {
in := fmt.Sprintf("%s", input)
in = strings.ReplaceAll(in, "release-v", "")
in = strings.ReplaceAll(in, "release-", "")
in = strings.ReplaceAll(in, "knative-", "kn-")
in = strings.ReplaceAll(in, "eventing-kafka-broker-", "ekb-")
return Name(in, "")
}

Expand Down

0 comments on commit f4f38d7

Please sign in to comment.