From ebce537dcae4576373200ac312d235771af1fe6e Mon Sep 17 00:00:00 2001 From: wasurerarenai <537939+wasurerarenai@users.noreply.github.com> Date: Tue, 4 Jun 2024 15:12:45 -0500 Subject: [PATCH] Sort talos patches for consistency (#1511) --- bootstrap/scripts/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap/scripts/plugin.py b/bootstrap/scripts/plugin.py index d474921c..e8f1a288 100644 --- a/bootstrap/scripts/plugin.py +++ b/bootstrap/scripts/plugin.py @@ -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