Introduce new preview auto-scaling mode for ARC. (#2153)
Co-authored-by: Cory Miller <[email protected]> Co-authored-by: Nikola Jokic <[email protected]> Co-authored-by: Ava Stancu <[email protected]> Co-authored-by: Ferenc Hammerl <[email protected]> Co-authored-by: Francesco Renzi <[email protected]> Co-authored-by: Bassem Dghaidi <[email protected]>
This commit is contained in:
co-authored by
Cory Miller
Nikola Jokic
Ava Stancu
Ferenc Hammerl
Francesco Renzi
Bassem Dghaidi
parent
619667fc3b
commit
622eaa34f8
@@ -3,6 +3,7 @@ package hash
|
||||
import (
|
||||
"fmt"
|
||||
"hash/fnv"
|
||||
|
||||
"k8s.io/apimachinery/pkg/util/rand"
|
||||
)
|
||||
|
||||
@@ -15,3 +16,9 @@ func FNVHashStringObjects(objs ...interface{}) string {
|
||||
|
||||
return rand.SafeEncodeString(fmt.Sprint(hash.Sum32()))
|
||||
}
|
||||
|
||||
func FNVHashString(name string) string {
|
||||
hash := fnv.New32a()
|
||||
hash.Write([]byte(name))
|
||||
return rand.SafeEncodeString(fmt.Sprint(hash.Sum32()))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user