Commit a5b8e0d
authored
fix: correct PCSG topology constraint handling for scaled PodGangs (#357)
* Revert "fix: add PCSG topology constraints to scaled PodGangs (#347)"
This reverts commit a08e5af.
Signed-off-by: Ron Kahn <rkahn@nvidia.com>
* fix: update topology constraint handling for scaled PodGangs
Signed-off-by: Ron Kahn <rkahn@nvidia.com>
* fix: only create PCSG topology constraints when defined
Add nil check before creating PCSG topology constraint groups in
base PodGang building. This prevents creating empty topology
constraints when PCSG has no TopologyConstraint specified,
ensuring scaled PodGangs properly fall back to PCS-level
constraints.
Signed-off-by: Ron Kahn <rkahn@nvidia.com>
* test: add case for PCS with nil PCSG topology constraints fallback to pcs
Signed-off-by: Ron Kahn <rkahn@nvidia.com>
* test: clean up formatting in syncflow_test.go
Signed-off-by: Ron Kahn <rkahn@nvidia.com>
* test: clean up formatting in syncflow_test.go
Signed-off-by: Ron Kahn <rkahn@nvidia.com>
* test: remove redundant comments regarding pcsgConstraints in syncflow_test.go
Signed-off-by: Ron Kahn <rkahn@nvidia.com>
* test: improve formatting and remove redundant comment in syncflow_test.go
Signed-off-by: Ron Kahn <rkahn@nvidia.com>
* test: clean up formatting in syncflow_test.go
Signed-off-by: Ron Kahn <rkahn@nvidia.com>
---------
Signed-off-by: Ron Kahn <rkahn@nvidia.com>1 parent a08e5af commit a5b8e0d
File tree
2 files changed
+67
-22
lines changed- operator/internal/controller/podcliqueset/components/podgang
2 files changed
+67
-22
lines changedLines changed: 15 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
| 257 | + | |
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | | - | |
293 | 292 | | |
294 | 293 | | |
295 | 294 | | |
| |||
301 | 300 | | |
302 | 301 | | |
303 | 302 | | |
304 | | - | |
305 | 303 | | |
306 | 304 | | |
307 | | - | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
308 | 309 | | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
314 | 317 | | |
315 | | - | |
316 | 318 | | |
317 | 319 | | |
318 | 320 | | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
323 | 324 | | |
324 | 325 | | |
325 | 326 | | |
| |||
Lines changed: 52 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
704 | 704 | | |
705 | 705 | | |
706 | 706 | | |
707 | | - | |
| 707 | + | |
708 | 708 | | |
709 | 709 | | |
710 | 710 | | |
711 | 711 | | |
712 | | - | |
713 | | - | |
714 | | - | |
715 | 712 | | |
716 | 713 | | |
717 | 714 | | |
| |||
770 | 767 | | |
771 | 768 | | |
772 | 769 | | |
773 | | - | |
| 770 | + | |
774 | 771 | | |
775 | 772 | | |
776 | 773 | | |
777 | 774 | | |
778 | | - | |
779 | | - | |
780 | | - | |
781 | 775 | | |
782 | 776 | | |
783 | 777 | | |
| |||
823 | 817 | | |
824 | 818 | | |
825 | 819 | | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
826 | 870 | | |
827 | 871 | | |
828 | 872 | | |
| |||
0 commit comments