Skip to content

Commit

Permalink
fixed kastenhq#295 ResourceNameShortener shortens the resource name i…
Browse files Browse the repository at this point in the history
…f it exceeds maxResourceNameLength of 64
  • Loading branch information
myrachanto committed Aug 24, 2024
1 parent 6c0a117 commit 5c7fc4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/block/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
// resource name maxs lenght
const maxResourceNameLength = 64

// ResourceNameShortener shortens the resource name if it exceeds maxResourceNameLength.
// ResourceNameShortener shortens the resource name if it exceeds maxResourceNameLength of 64.
// It replaces the last 5 characters with the first 5 characters of a hash (base64 encoded).
func ResourceNameShortener(name string) string {
if len(name) <= maxResourceNameLength {
Expand Down

0 comments on commit 5c7fc4d

Please sign in to comment.