Sort talos patches for consistency (#1511)

This commit is contained in:
wasurerarenai authored and GitHub committed 2024-06-04 16:12:45 -04:00
1 parent f397a7d09c
commit ebce537dca
1 file changed
+1 -1
+1 -1
View File
@@ -21,7 +21,7 @@ def talos_patches(value: str) -> list[str]:
path = Path(f'bootstrap/templates/kubernetes/bootstrap/talos/patches/{value}')
if not path.is_dir():
return []
return [str(f) for f in path.glob('*.yaml.j2') if f.is_file()]
return [str(f) for f in sorted(path.glob('*.yaml.j2')) if f.is_file()]
# Return the nth host in a CIDR range