You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/controller/hash.go
+23-1Lines changed: 23 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,8 @@ import (
13
13
)
14
14
15
15
var (
16
-
ErrInvalidNames=errors.New("list of names must not be empty and contain at least one non-empty string")
16
+
ErrInvalidNames=errors.New("list of names must not be empty and contain at least one non-empty string")
17
+
ErrMaxLenTooSmall=errors.New("maxLen must be greater than 10")
17
18
)
18
19
19
20
// Version8UUID creates a new UUID (version 8) from a byte slice. Returns an error if the slice does not have a length of 16. The bytes are copied from the slice.
Copy file name to clipboardExpand all lines: pkg/controller/utils.go
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@ const (
15
15
16
16
// K8sNameHash takes any number of string arguments and computes a hash out of it, which is then base32-encoded to be a valid DNS1123Subdomain k8s resource name
17
17
// The arguments are joined with '/' before being hashed.
18
+
// Deprecated: Use NameHashSHAKE128Base32 instead.
18
19
funcK8sNameHash(ids...string) string {
19
20
name:=strings.Join(ids, "/")
20
21
// since we are not worried about length-extension attacks (in fact we are not even using hashing for
0 commit comments