code: func (f CodecFactory) LegacyCodec(version ...schema.GroupVersion) runtime.Codec {
  	return versioning.NewDefaultingCodecForScheme(f.scheme, f.legacySerializer, f.universal, schema.GroupVersions(version), runtime.InternalGroupVersioner)
  }
docs: // LegacyCodec encodes output to a given API versions, and decodes output into the internal form from
  // any recognized source. The returned codec will always encode output to JSON. If a type is not
  // found in the list of versions an error will be returned.
  //
  // This method is deprecated - clients and servers should negotiate a serializer by mime-type and
  // invoke CodecForVersions. Callers that need only to read data should use UniversalDecoder().
  //
  // TODO: make this call exist only in pkg/api, and initialize it with the set of default versions.
  //   All other callers will be forced to request a Codec directly.