From 097fe71742cbcba7f0f53ceac2ebf78986dc4d99 Mon Sep 17 00:00:00 2001
From: Sheogorath <sheogorath@shivering-isles.com>
Date: Thu, 7 Mar 2024 00:21:36 +0100
Subject: [PATCH] fix: Drop unneeded reorder surpression

This patch drops the deprecated flag for output reordering. This causes
the output to be ordered properly instead of following the order of the
resource list.

References:
https://kubectl.docs.kubernetes.io/references/kustomize/kustomization/sortoptions/#legacy-sorting
---
 scripts/package-controller | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/package-controller b/scripts/package-controller
index 814b69af..7536cff6 100755
--- a/scripts/package-controller
+++ b/scripts/package-controller
@@ -34,6 +34,6 @@ if [ "$ARCH" = "amd64" ]; then
   cp kustomization.yaml /tmp/
   trap reset-kustomization EXIT
   kustomize edit set image "rancher/system-upgrade-controller=${REPO}/system-upgrade-controller:${VERSION}"
-  kustomize build --reorder=none --output ./dist/artifacts/system-upgrade-controller.yaml
+  kustomize build --output ./dist/artifacts/system-upgrade-controller.yaml
   go run hack/crdgen.go > ./dist/artifacts/crd.yaml
 fi
-- 
GitLab