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:
Tingluo Huang
2023-01-17 12:06:20 -05:00
committed by GitHub
co-authored by Cory Miller Nikola Jokic Ava Stancu Ferenc Hammerl Francesco Renzi Bassem Dghaidi
parent 619667fc3b
commit 622eaa34f8
75 changed files with 26094 additions and 354 deletions
+7
View File
@@ -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()))
}