mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 07:27:21 +00:00
Modify hash to be computed using spew library so that nested object values are used instead of pointer
This commit is contained in:
@@ -540,7 +540,7 @@ const containerNamePrefix = "k8s"
|
||||
|
||||
func HashContainer(container *api.Container) uint64 {
|
||||
hash := adler32.New()
|
||||
fmt.Fprintf(hash, "%#v", *container)
|
||||
util.DeepHashObject(hash, *container)
|
||||
return uint64(hash.Sum32())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user