Introduce new preview auto-scaling mode for ARC. (#2153)

Co-authored-by: Cory Miller <cory-miller@github.com>
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
Co-authored-by: Ava Stancu <AvaStancu@github.com>
Co-authored-by: Ferenc Hammerl <fhammerl@github.com>
Co-authored-by: Francesco Renzi <rentziass@github.com>
Co-authored-by: Bassem Dghaidi <Link-@github.com>
This commit is contained in:
Tingluo Huang
2023-01-17 12:06:20 -05:00
committed by GitHub
parent 619667fc3b
commit 622eaa34f8
75 changed files with 26094 additions and 354 deletions

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()))
}