// NewReverseTranslator creates a new ReverseTranslator for minorVersion and returns a ptr to it.
NewReverseTranslator creates a new ReverseTranslator for minorVersion and returns a ptr to it.
// NewReverseTranslator creates a new ReverseTranslator for minorVersion and returns a ptr to it .
func NewReverseTranslator(minorVersion version.MinorVersion) (*ReverseTranslator, error) {
	t := ReverseTranslators[minorVersion]
	if t == nil {
		return nil, fmt.Errorf("no value.yaml translator available for version %s", minorVersion)
	}
	err := t.initAPIAndComponentMapping(minorVersion)
	if err != nil {
		return nil, fmt.Errorf("error initialize API mapping: %s", err)
	}
	t.Version = minorVersion
	return t, nil
}
func NewReverseTranslator ( minorVersion version . MinorVersion ) ( * ReverseTranslator , error ) { t := ReverseTranslators [ minorVersion ] if t == nil { return nil , fmt . Errorf ( " " , minorVersion ) } err := t . initAPIAndComponentMapping ( minorVersion ) if err != nil { return nil , fmt . Errorf ( " " , err ) } t . Version = minorVersion return t , nil }
NewReverseTranslator creates a new ReverseTranslator for minorVersion and returns a ptr to it.
NewReverseTranslator creates a new ReverseTranslator for minorVersion and returns a ptr to it .