Skip to content

[worker topology controller] initial cm topology until asts not found#1401

Merged
Uburro merged 1 commit intomainfrom
improve-topology-conf
Aug 8, 2025
Merged

[worker topology controller] initial cm topology until asts not found#1401
Uburro merged 1 commit intomainfrom
improve-topology-conf

Conversation

@Uburro
Copy link
Collaborator

@Uburro Uburro commented Aug 8, 2025

No description provided.

@Uburro Uburro requested a review from Copilot August 8, 2025 09:10
@Uburro Uburro added the fix label Aug 8, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements a fallback mechanism for worker topology configuration when StatefulSets are not found. The main purpose is to create an initial ConfigMap topology configuration using SlurmCluster specifications when AdvancedStatefulSets haven't been created yet.

Key changes:

  • Adds fallback logic to create a temporary StatefulSet based on SlurmCluster spec when no existing StatefulSets are found
  • Refactors the EnsureTopologyConfigMap method to use the new fallback mechanism
  • Adds comprehensive test coverage for the fallback functionality

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
internal/controller/topologyconfcontroller/workertopology_controller.go Implements fallback StatefulSet creation logic when none exist
internal/controller/topologyconfcontroller/workertopology_controller_test.go Adds comprehensive test coverage for the new fallback mechanism

@Uburro Uburro changed the title initial cm topology until asts not found [worker topology controller] initial cm topology until asts not found Aug 8, 2025
@Uburro Uburro marked this pull request as ready for review August 8, 2025 09:51
@Uburro Uburro merged commit 8bb2ffc into main Aug 8, 2025
5 of 7 checks passed
@Uburro Uburro deleted the improve-topology-conf branch August 8, 2025 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants