Files
Abdul Basit e1a6c324b3
Run the E2E test on kind / setup-test-matrix (push) Failing after 3s
e2e-test-kind.yaml / extract (push) Failing after 7s
Run the E2E test on kind / get-go-version (push) Failing after 8s
Run the E2E test on kind / build (push) Skipped
Run the E2E test on kind / run-e2e-test (push) Skipped
Run the E2E test on kind / run-csi-e2e-test (push) Skipped
push.yml / extract (push) Failing after 6s
Main CI / get-go-version (push) Failing after 7s
Main CI / Build (push) Skipped
Scorecard supply-chain security / Scorecard analysis (push) Skipped
Fix restore resource priorities aliasing that can skip restoring resources (#10665)
* Fix restore resource priorities aliasing that can skip restoring resources

Priorities.Set returned HighPriorities and LowPriorities as slices of
one backing array when the value had a "-" in the middle, leaving
HighPriorities with spare capacity over the separator and the low list.
getOrderedResources appended to HighPriorities, so a backup with between
2 and 1+len(low) unprioritized resource types overwrote the low list in
place. That could drop a backed-up resource type from the restore order,
and because the server's priorities are shared by every restore, the
corrupted order persisted for later restores.

- Set: cap HighPriorities with full slice expressions.
- getOrderedResources: build a new slice instead of appending to the
  caller's.
- String: build a fresh slice instead of appending to HighPriorities.

Signed-off-by: abd-ulbasit <basit@basit.engineer>

* Add changelog for #10665

Signed-off-by: abd-ulbasit <basit@basit.engineer>

---------

Signed-off-by: abd-ulbasit <basit@basit.engineer>
2026-10-22 15:16:26 +08:00
..