Feat: organization models #207
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a comprehensive set of changes to support AI model management and Kubernetes integration in the API gateway. The main additions are new domain models for AI models, a Kubernetes service for cluster and GPU management, and the necessary dependency injection wiring to expose these features via HTTP APIs. The changes are grouped below by theme.
AI Model Management:
models
domain package (apps/jan-api-gateway/application/app/domain/organization/models/model.go
) defining types for model creation, resource requirements, model status, filtering, and cluster/GPU resource summaries. This enables structured management of AI models within organizations.Kubernetes Integration:
KubernetesService
(apps/jan-api-gateway/application/app/infrastructure/kubernetes/kubernetes_service.go
) that provides cluster connectivity, CRD checks, GPU node/resource discovery, and storage class validation. This service is essential for deploying and managing models on Kubernetes clusters.Dependency Injection Wiring:
ModelService
and Kubernetes-related services (NewKubernetesService
,NewModelDeploymentManager
) in the service and infrastructure provider sets, making them available for use throughout the application. [1] [2]HTTP API Exposure:
General Integration:
Issue: #128