Merge pull request #10242 from justinsb/gce_instance_comparison

GCE: ignore (output-only) networkInterface.name
This commit is contained in:
Kubernetes Prow Robot 2020-11-16 11:10:06 -08:00 committed by GitHub
commit 953b9a1e5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -353,6 +353,10 @@ func matches(l, r *compute.InstanceTemplate) bool {
c.Metadata.Fingerprint = ""
sort.Sort(ByKey(c.Metadata.Items))
}
// Ignore output fields
for _, ni := range c.NetworkInterfaces {
ni.Name = ""
}
return &c
}
normalize := func(v *compute.InstanceTemplate) *compute.InstanceTemplate {