Skip to content

Commit 2ae976e

Browse files
authored
Simple fix for deployment ordering (#142)
1 parent 7e68185 commit 2ae976e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dev/tools/deploy-to-kube

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ def main(args):
6868
return
6969

7070
for root, dirs, files in os.walk(manifests_path):
71+
# Process files in alphabetical order
72+
# This works now because k8s/ doesn't contain CRs, and Namespace is defined in the first file (controller.yaml).
73+
# TODO: Handle file ordering better so that CRDs and Namespaces are deployed first
74+
files.sort()
7175
for filename in files:
7276
if not (filename.endswith(".yaml") or filename.endswith(".yml")):
7377
continue

0 commit comments

Comments
 (0)