type yamlSerializer … var _ … // NewDecodingSerializer adds YAML decoding support to a serializer that supports JSON. func NewDecodingSerializer(jsonSerializer runtime.Serializer) runtime.Serializer { … } func (c yamlSerializer) Decode(data []byte, gvk *schema.GroupVersionKind, into runtime.Object) (runtime.Object, *schema.GroupVersionKind, error) { … }