You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Compatibility Note**: The `initialize` function includes temporary type conversion logic to maintain compatibility with other functions (`generateStagesByStrategy`, `recordOverrideSnapshots`) that haven't been refactored yet. This demonstrates the incremental nature of the interface-based refactoring.
311
311
312
+
### Phase 7: computeRunStageStatus Refactor ✅
313
+
314
+
**Target**: `computeRunStageStatus` function - computes cluster stages based on StagedUpdateStrategy
3.**Interface-Based Status Updates**: Uses `SetStagedUpdateRunStatus()` instead of direct field assignment
360
+
4.**Type Conversion Integration**: Uses `controller.ConvertCRBArrayToBindingObjs()` in caller
361
+
5.**Generic Logging**: Updated terminology from cluster-specific to generic
362
+
363
+
**Integration**: The `generateStagesByStrategy` function now converts concrete binding arrays to interfaces before calling `computeRunStageStatus`, maintaining compatibility while enabling interface-based processing.
364
+
312
365
## Current Status
313
366
- ✅ `validatePlacement`: Fully generic, uses utility functions and interfaces
klog.ErrorS(err, "Failed to validate the after stage tasks", "clusterStagedUpdateStrategy", updateStrategyName, "stage name", stage.Name, "clusterStagedUpdateRun", updateRunRef)
0 commit comments