pkg/labels/labels.go
func (ls *Labels) UnmarshalYAML(unmarshal func(interface{}) error) error {
	var m map[string]string

	if err := unmarshal(&m); err != nil {
		return err
	}

	*ls = FromMap(m)
	return nil
}
func (ls *Labels) UnmarshalYAML(unmarshal func(interface{}) error) error {
	var m map[string]string

	if err := unmarshal(&m); err != nil {
		return err
	}

	*ls = FromMap(m)
	return nil
}
func ( ls * Labels ) UnmarshalYAML ( unmarshal func ( interface { } ) error ) error { var m map [ string ] string if err := unmarshal ( & m ) ; err != nil { return err } * ls = FromMap ( m ) return nil }
// UnmarshalYAML implements yaml.Unmarshaler.
UnmarshalYAML implements yaml . Unmarshaler .