Skip to content

Refactor PodGangSet and PodGang APIs#101

Merged
unmarshall merged 6 commits into
ai-dynamo:mainfrom
unmarshall:refactor-apis
Jul 8, 2025
Merged

Refactor PodGangSet and PodGang APIs#101
unmarshall merged 6 commits into
ai-dynamo:mainfrom
unmarshall:refactor-apis

Conversation

@unmarshall

@unmarshall unmarshall commented Jul 8, 2025

Copy link
Copy Markdown
Collaborator

This PR introduces the following changes:

Operator API changes:

  • Removed RollingUpdateConfiguration.
  • Renamed PodGangTemplateSpec to PodGangSetTemplateSpec
  • Moved PriorityClassName to PodGangSetTemplateSpec
  • Introduced NetworkPackGroupConfig and NetworkPackGroupConfigs in
    SchedulingPolicyConfig.
  • Moved MinReplicas to AutoScalingConfig.
  • Introduced MinAvailable in PodCliqueSpec.

Scheduler API changes:

  • Introduced Name field for PodGroup.
  • Removed NetworkPackStrategy and replaced it with NetworkPackGroupConfigs.
  • Regenerated deepcopy and CRDs.
  • Partially adapted code to API changes.
  • Renamed SchedulingPhase to Phase and introduced constants for different Phases.
  • Introduced constants for different Condition types.

unmarshall and others added 6 commits July 7, 2025 13:12
* Removed RollingUpdateConfiguration.
* Renamed PodGangTemplateSpec to PodGangSetTemplateSpec
* Moved PriorityClassName to PodGangSetTemplateSpec
* Introduced NetworkPackGroupConfig and NetworkPackGroupConfigs in
  SchedulingPolicyConfig.
* Moved MinReplicas to AutoScalingConfig.
* Introduced MinAvailable in PodCliqueSpec.
Scheduler API changes:
* Removed NetworkPackStrategy and replaced it with NetworkPackGroupConfigs.
* Regenerated deepcopy and CRDs.
* Partially adapted code to API changes.

Signed-off-by: madhav bhargava <madhav.bhargava@sap.com>
* Removes validation for Rolling update strategy and configuration.
* Introduces validation for PodCliqueSpec.minAvailable.
* Enhances validation for AutoScalingConfig.
* Introduces validation for NetworkPackGroupConfigs.

Signed-off-by: madhav bhargava <madhav.bhargava@sap.com>
Signed-off-by: Saketh Kalaga <51327242+renormalize@users.noreply.github.com>
* HPA component now uses `scaleConfig.minReplicas`.

* `podGang.Spec.PriorityClassName` is derived from `podGangSet.Spec.Template.PriorityClassName` now.

* PodGroups now rely on `pclqTemplate.spec.minAvailable` now, instead of `minReplicas`.

* Defaulting webhook modified to be coherent with the modified API.

Signed-off-by: Saketh Kalaga <51327242+renormalize@users.noreply.github.com>
* Added constants for PodGang status phase.
* Corrected nil pointer dereference in admission webhooks.
* Regenerated code and CRDs.

Signed-off-by: madhav bhargava <madhav.bhargava@sap.com>
Signed-off-by: Saketh Kalaga <51327242+renormalize@users.noreply.github.com>
@unmarshall unmarshall merged commit 57d670a into ai-dynamo:main Jul 8, 2025
1 check 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