<#4300 [fix] #3919 : Added Output Format Option to...
# flyte-github
a
#4300 [fix] #3919 : Added Output Format Option to flyte single start Command Pull request opened by adarsh-jha-dev Tracking issue closes #3919 Describe your changes In the start.go file, I introduced a new command, flyte single start, which is used to start a Flyte cluster locally. This command includes the following key changes: • The startCmd variable is defined to create a new Cobra command named "start." It has a brief description indicating its purpose. • Inside the RunE function of this command, an error group (errgroup) is created, and the childCtx context is derived from the parent context (ctx). • You access the configuration using the GetConfig() function to retrieve the configuration settings for different components such as Admin, Propeller, and DataCatalog. • Three different components are started in parallel if they are not explicitly disabled in the configuration: • Admin: The Flyte Admin server, including database migrations and seeding of default projects. • Propeller: The Flyte Propeller component, including its controller and webhook server. • DataCatalog: The Flyte DataCatalog component, including database migrations. • The errgroup (g) is used to coordinate the start of these components in parallel. • Finally, the function waits for all the components to complete by calling g.Wait(). This change allows users to conveniently start a Flyte cluster locally using a single command while providing the flexibility to disable specific components as needed. Check all the applicable boxes ☐ I updated the documentation accordingly. ☐ All new and existing tests passed. ☑︎ All commits are signed-off. Screenshots N/A Note to reviewers Please review this and let me know if the changes are relevant to the issue. Your feedback is greatly appreciated. flyteorg/flyte ✅ All checks have passed 2/2 successful checks