Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
75101b6
fix: wip
mohammedabdulwahhab Aug 11, 2025
1323498
fix: fix
mohammedabdulwahhab Aug 11, 2025
78ca1cc
fix: fix
mohammedabdulwahhab Aug 11, 2025
8514e2a
Merge branch 'main' of https://github.com/ai-dynamo/dynamo into mabdu…
mohammedabdulwahhab Aug 11, 2025
903baf3
fix: refactor main component type to frontend
mohammedabdulwahhab Aug 11, 2025
86759aa
fix: tests partially fixed
mohammedabdulwahhab Aug 12, 2025
045bae6
fix: parameterize component factory with single vs multinode and fix …
mohammedabdulwahhab Aug 12, 2025
bac8c3f
fix: update vllm yamls to use defaults
mohammedabdulwahhab Aug 12, 2025
b7fb92c
fix: update sglang yamls
mohammedabdulwahhab Aug 12, 2025
a618c0c
fix: trtllm yamls
mohammedabdulwahhab Aug 12, 2025
c7d5ad4
fix: add planner component defaults
mohammedabdulwahhab Aug 12, 2025
97b96c5
fix: set planner defaults
mohammedabdulwahhab Aug 12, 2025
286069f
fix: ai lint yaml files
mohammedabdulwahhab Aug 12, 2025
a2f4110
fix: more tee removals
mohammedabdulwahhab Aug 12, 2025
2ebaf90
fix: more lint
mohammedabdulwahhab Aug 12, 2025
3a79d26
Update components/backends/vllm/deploy/disagg_planner.yaml
mohammedabdulwahhab Aug 12, 2025
fe9c153
fix: fix
mohammedabdulwahhab Aug 12, 2025
4cf9394
Merge branch 'mabdulwahhab/defaults' of https://github.com/ai-dynamo/…
mohammedabdulwahhab Aug 12, 2025
880d2b4
fix: fix merge conflicts
mohammedabdulwahhab Aug 12, 2025
b9f9c43
fix: remove backend param
mohammedabdulwahhab Aug 12, 2025
d3eb5d3
Apply suggestions from code review
mohammedabdulwahhab Aug 12, 2025
352a4e7
fix: remove multinode guard and fix tests
mohammedabdulwahhab Aug 12, 2025
04919b7
Merge branch 'mabdulwahhab/defaults' of https://github.com/ai-dynamo/…
mohammedabdulwahhab Aug 12, 2025
1a58890
fix: fix role
mohammedabdulwahhab Aug 12, 2025
e84d253
fix: planner should add a service account
mohammedabdulwahhab Aug 13, 2025
cbd90e9
fix: add startup probe overrides, add checkMainContainerOverrides
mohammedabdulwahhab Aug 13, 2025
042092e
fix: restore prometheus comp in disagg_planner to use componentType f…
mohammedabdulwahhab Aug 13, 2025
0a738a8
Merge branch 'main' of https://github.com/ai-dynamo/dynamo into mabdu…
mohammedabdulwahhab Aug 13, 2025
66dbc51
fix: update prometheus for sglang as well
mohammedabdulwahhab Aug 13, 2025
d5f6b2d
Merge branch 'main' of https://github.com/ai-dynamo/dynamo into mabdu…
mohammedabdulwahhab Aug 13, 2025
1a05dab
fix: remove validate main container
mohammedabdulwahhab Aug 14, 2025
bf8db83
Merge branch 'main' of https://github.com/ai-dynamo/dynamo into mabdu…
mohammedabdulwahhab Aug 14, 2025
e54b451
fix: fix sglang disagg planner
mohammedabdulwahhab Aug 14, 2025
20e84e5
Apply suggestions from code review
mohammedabdulwahhab Aug 14, 2025
117b0ce
Merge branch 'main' of https://github.com/ai-dynamo/dynamo into mabdu…
mohammedabdulwahhab Aug 14, 2025
7aa3627
Merge branch 'mabdulwahhab/defaults' of https://github.com/ai-dynamo/…
mohammedabdulwahhab Aug 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: fix
  • Loading branch information
mohammedabdulwahhab committed Aug 11, 2025
commit 78ca1ccc73fb14fcc60fb156c20746e4f9a6930f
25 changes: 0 additions & 25 deletions deploy/cloud/operator/internal/dynamo/base_component.go

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,18 @@ func ComponentDefaultsFactory(componentType string) ComponentDefaults {
return &BaseComponentDefaults{}
}
}

// BaseComponentDefaults provides common defaults shared by all components
type BaseComponentDefaults struct{}

func (b *BaseComponentDefaults) GetBaseContainer(backendFramework BackendFramework) (corev1.Container, error) {
return b.getCommonContainer(), nil
}

func (b *BaseComponentDefaults) getCommonContainer() corev1.Container {
container := corev1.Container{
Name: "main",
}

return container
}
9 changes: 1 addition & 8 deletions deploy/cloud/operator/internal/dynamo/graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -698,16 +698,13 @@ func GenerateBasePodSpec(
multinodeDeploymentType commonconsts.MultinodeDeploymentType,
serviceName string,
) (corev1.PodSpec, error) {
// Get component defaults
// Start with base container generated per component type
componentDefaults := ComponentDefaultsFactory(component.ComponentType)

// Get base container further parameterized by the backend engine
container, err := componentDefaults.GetBaseContainer(backendFramework)
if err != nil {
return corev1.PodSpec{}, fmt.Errorf("failed to get base container: %w", err)
}

// merge main container spec
if component.ExtraPodSpec != nil && component.ExtraPodSpec.MainContainer != nil {
main := component.ExtraPodSpec.MainContainer.DeepCopy()
if main != nil {
Expand All @@ -720,7 +717,6 @@ func GenerateBasePodSpec(
}
}

// merge resources
overrideResources, err := controller_common.GetResourcesConfig(component.Resources)
if err != nil {
return corev1.PodSpec{}, fmt.Errorf("failed to get resources config: %w", err)
Expand All @@ -745,7 +741,6 @@ func GenerateBasePodSpec(
})
}

// Add standard environment variables
addStandardEnvVars(&container, controllerConfig)

var volumes []corev1.Volume
Expand All @@ -763,12 +758,10 @@ func GenerateBasePodSpec(
MountPath: *component.PVC.MountPoint,
})
}

shmVolume, shmVolumeMount := generateSharedMemoryVolumeAndMount(&container.Resources)
volumes = append(volumes, shmVolume)
container.VolumeMounts = append(container.VolumeMounts, shmVolumeMount)

// allow
// Apply backend-specific container modifications
backend := BackendFactory(backendFramework)
if backend == nil {
Expand Down