code: func canonicalizeInstanceName(name string) string {
  	ix := strings.Index(name, ".")
  	if ix != -1 {
  		name = name[:ix]
  	}
  	return name
  }
docs: // Take a GCE instance 'hostname' and break it down to something that can be fed
  // to the GCE API client library.  Basically this means reducing 'kubernetes-
  // node-2.c.my-proj.internal' to 'kubernetes-node-2' if necessary.