Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(backend): split application manager #1396

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

axel7083
Copy link
Contributor

What does this PR do?

The application manager is too big, and is doing too much thing, without talking about the ApplicationManager.spec.ts which is more than 1k lines.

This PR simplify the ApplicationManager by adding a RecipeManager.

Here a break down of responsibilities

Application Manager

  • create | delete | start | remove pods
  • create containers
  • adopt pods

Recipe Manager

  • clone recipes
  • build recipe container images
  • read ai-lab configuration

Screenshot / video of UI

What issues does this PR fix or reference?

How to test this PR?

  • lot of tests has been written :)

Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>
@axel7083 axel7083 requested review from benoitf, jeffmaury and a team as code owners July 17, 2024 14:34
@axel7083 axel7083 requested review from feloy and lstocchi July 17, 2024 15:52
Copy link
Contributor

@feloy feloy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested by doing different operations on AI Apps, works as expected

Thanks for the refactoring

@axel7083 axel7083 merged commit 0d8cc00 into containers:main Jul 18, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants