// isEnablementPath is helper function to check whether paths represent enablement of components in values.yaml
isEnablementPath is helper function to check whether paths represent enablement of components in values.yaml
// isEnablementPath is helper function to check whether paths represent enablement of components in values . yaml
func (t *ReverseTranslator) isEnablementPath(path util.Path) bool {
	if len(path) < 2 || path[len(path)-1] != "enabled" {
		return false
	}
	pf := path[:len(path)-1].String()
	if specialComponentPath[pf] {
		return true
	}
	_, exist := t.ValuesToComponentName[pf]
	return exist
}
func ( t * ReverseTranslator ) isEnablementPath ( path util . Path ) bool { if len ( path ) < 2 || path [ len ( path ) - 1 ] != " " { return false } pf := path [ : len ( path ) - 1 ] . String ( ) if specialComponentPath [ pf ] { return true } _ , exist := t . ValuesToComponentName [ pf ] return exist }
isEnablementPath is helper function to check whether paths represent enablement of components in values.yaml
isEnablementPath is helper function to check whether paths represent enablement of components in values . yaml