Merge pull request #115758 from sourcelliu/storageversion

Remove unused code

Kubernetes-commit: b8688048f8d3cca513ae36b2eb6e15f457a18df3
This commit is contained in:
Kubernetes Publisher 2023-02-14 14:26:03 -08:00
commit 7ccdd9a293
1 changed files with 0 additions and 3 deletions

View File

@ -27,9 +27,6 @@ import (
// this function.
func StorageVersionHash(group, version, kind string) string {
gvk := group + "/" + version + "/" + kind
if gvk == "" {
return ""
}
bytes := sha256.Sum256([]byte(gvk))
// Assuming there are N kinds in the cluster, and the hash is X-byte long,
// the chance of colliding hash P(N,X) approximates to 1-e^(-(N^2)/2^(8X+1)).