code: func promoteOrPrependGroupVersion(target unversioned.GroupVersion, gvs []unversioned.GroupVersion) []unversioned.GroupVersion {
  	for i, gv := range gvs {
  		if gv.Group == target.Group {
  			gvs[0], gvs[i] = gvs[i], gvs[0]
  			return gvs
  		}
  	}
  	return append([]unversioned.GroupVersion{target}, gvs...)
  }
docs: // promoteOrPrependGroupVersion finds the group version in the provided group versions that has the same group as target.
  // If the group is found the returned array will have that group version in the first position - if the group is not found
  // the returned array will have target in the first position.