// initAPIMapping generate the reverse mapping from original translator apiMapping.
initAPIMapping generate the reverse mapping from original translator apiMapping.
// initAPIMapping generate the reverse mapping from original translator apiMapping .
func (t *ReverseTranslator) initAPIAndComponentMapping(vs version.MinorVersion) error {
	ts, err := NewTranslator(vs)
	if err != nil {
		return err
	}
	for valKey, outVal := range ts.APIMapping {
		t.APIMapping[outVal.OutPath] = &Translation{valKey, nil}
	}
	for cn, cm := range ts.ComponentMaps {
		if !skipTranslate[cn] {
			t.ValuesToComponentName[cm.ToHelmValuesTreeRoot] = cn
		}
	}
	return nil
}
func ( t * ReverseTranslator ) initAPIAndComponentMapping ( vs version . MinorVersion ) error { ts , err := NewTranslator ( vs ) if err != nil { return err } for valKey , outVal := range ts . APIMapping { t . APIMapping [ outVal . OutPath ] = & Translation { valKey , nil } } for cn , cm := range ts . ComponentMaps { if ! skipTranslate [ cn ] { t . ValuesToComponentName [ cm . ToHelmValuesTreeRoot ] = cn } } return nil }
initAPIMapping generate the reverse mapping from original translator apiMapping.
initAPIMapping generate the reverse mapping from original translator apiMapping .