mirror of https://github.com/kubernetes/kops.git
Merge pull request #10242 from justinsb/gce_instance_comparison
GCE: ignore (output-only) networkInterface.name
This commit is contained in:
commit
953b9a1e5a
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue