From cd6636189548bc993b486c3619f65fbb8b6ba965 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Tue, 2 Jun 2026 23:18:19 -0400 Subject: [PATCH] fix: sort the properties so that the snippets do not cause drift for each deploy --- plugins/scheduler-k3s/functions.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/plugins/scheduler-k3s/functions.go b/plugins/scheduler-k3s/functions.go index 5483ce95b..78f4f2a8e 100644 --- a/plugins/scheduler-k3s/functions.go +++ b/plugins/scheduler-k3s/functions.go @@ -1073,7 +1073,14 @@ func getIngressAnnotations(appName string, processType string) (map[string]strin } annotations := map[string]string{} - for _, newKey := range properties { + keys := make([]string, 0, len(properties)) + for key := range properties { + keys = append(keys, key) + } + sort.Strings(keys) + + for _, key := range keys { + newKey := properties[key] value := newKey.getter(appName) if newKey.modifier != nil { value = newKey.modifier(value)