Skip to content

Commit 464f7fe

Browse files
committed
remove --reorder none flag from the kustomize command
- add sortOption:legacy to flavors folder - add sortOption:legacy to test/ci folder - add sortOption:legacy to test/dev folder
1 parent 6ba17b3 commit 464f7fe

File tree

49 files changed

+144
-21
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+144
-21
lines changed

hack/gen-flavors.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ ci_dir="${REPO_ROOT}/templates/test/ci/"
2929
dev_dir="${REPO_ROOT}/templates/test/dev/"
3030

3131
for name in $(find "${flavors_dir}"* -maxdepth 0 -type d -print0 | xargs -0 -I {} basename {} | grep -v base); do
32-
${KUSTOMIZE} build --load-restrictor LoadRestrictionsNone --reorder none "${flavors_dir}${name}" > "${REPO_ROOT}/templates/cluster-template-${name}.yaml"
32+
${KUSTOMIZE} build --load-restrictor LoadRestrictionsNone "${flavors_dir}${name}" > "${REPO_ROOT}/templates/cluster-template-${name}.yaml"
3333
done
3434
# move the default template to the default file expected by clusterctl
3535
mv "${REPO_ROOT}/templates/cluster-template-default.yaml" "${REPO_ROOT}/templates/cluster-template.yaml"
3636

3737
for name in $(find "${ci_dir}"* -maxdepth 0 -type d -print0 | xargs -0 -I {} basename {} | grep -v patches); do
38-
${KUSTOMIZE} build --load-restrictor LoadRestrictionsNone --reorder none "${ci_dir}${name}" > "${ci_dir}cluster-template-${name}.yaml"
38+
${KUSTOMIZE} build --load-restrictor LoadRestrictionsNone "${ci_dir}${name}" > "${ci_dir}cluster-template-${name}.yaml"
3939
done
4040

4141
for name in $(find "${dev_dir}"* -maxdepth 0 -type d -print0 | xargs -0 -I {} basename {} | grep -v patches); do
42-
${KUSTOMIZE} build --load-restrictor LoadRestrictionsNone --reorder none "${dev_dir}${name}" > "${dev_dir}cluster-template-${name}.yaml"
42+
${KUSTOMIZE} build --load-restrictor LoadRestrictionsNone "${dev_dir}${name}" > "${dev_dir}cluster-template-${name}.yaml"
4343
done

templates/flavors/aad/kustomization.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ resources:
88
patches:
99
- path: patches/kubeadm-controlplane.yaml
1010
- path: ../../azure-cluster-identity/azurecluster-identity-ref.yaml
11+
12+
sortOptions:
13+
order: legacy

templates/flavors/aks-aso-clusterclass/kustomization.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ resources:
77
- azure-managed-cluster-template.yaml
88
- azure-managed-machinepool-template.yaml
99
- kubeadm-config-template.yaml
10+
11+
sortOptions:
12+
order: legacy

templates/flavors/aks-aso-topology/kustomization.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ kind: Kustomization
33
namespace: default
44
resources:
55
- cluster.yaml
6+
7+
sortOptions:
8+
order: legacy

templates/flavors/aks-aso/kustomization.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ kind: Kustomization
33
namespace: default
44
resources:
55
- cluster-template.yaml
6+
7+
sortOptions:
8+
order: legacy

templates/flavors/aks-clusterclass/kustomization.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ resources:
88
- azure-managed-machinepool-template.yaml
99
- ../../azure-cluster-identity
1010
- kubeadm-config-template.yaml
11+
12+
sortOptions:
13+
order: legacy

templates/flavors/aks-topology/kustomization.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ kind: Kustomization
33
namespace: default
44
resources:
55
- cluster.yaml
6+
7+
sortOptions:
8+
order: legacy

templates/flavors/aks/kustomization.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ resources:
66
- ../../azure-cluster-identity
77
patches:
88
- path: ../../azure-cluster-identity/managedazurecluster-identity-ref.yaml
9+
10+
sortOptions:
11+
order: legacy

templates/flavors/azure-bastion/kustomization.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ resources:
55
- ../default
66
patches:
77
- path: patches/azure-cluster.yaml
8+
9+
sortOptions:
10+
order: legacy

templates/flavors/azure-cni-v1/kustomization.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ patches:
99
- path: patches/azure-machine-template.yaml
1010
- path: patches/kubeadm-control-plane.yaml
1111
- path: patches/kubeadm-worker-node.yaml
12+
13+
sortOptions:
14+
order: legacy

0 commit comments

Comments
 (0)