code: func NewYAMLSerializer(meta MetaFactory, creater runtime.ObjectCreater, typer runtime.ObjectTyper) *Serializer {
  	return NewSerializerWithOptions(meta, creater, typer, SerializerOptions{true, false, false})
  }
docs: // NewYAMLSerializer creates a YAML serializer that handles encoding versioned objects into the proper YAML form. If typer
  // is not nil, the object has the group, version, and kind fields set. This serializer supports only the subset of YAML that
  // matches JSON, and will error if constructs are used that do not serialize to JSON.
  // Deprecated: use NewSerializerWithOptions instead.