Closed SISheogorath closed 4 months ago
lgtm, but I'm curious what the problem is with the current ordering?
I don't think there is a problem, it's just not the default. This results in the clusterrole, role and clusterrolebinding being created first before the namespace. I think the apiserver figures that out for us already, but with default reordering the Namespace moves to the top and becomes the first object being created.
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