code: func NewYAMLSerializer(meta MetaFactory, creater runtime.ObjectCreater, typer runtime.Typer) runtime.Serializer {
  	return &Serializer{
  		meta:    meta,
  		creater: creater,
  		typer:   typer,
  		yaml:    true,
  	}
  }
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.