fix: sort the properties so that the snippets do not cause drift for each deploy

This commit is contained in:
Jose Diaz-Gonzalez
2026-06-02 23:18:19 -04:00
parent 9dfb2b1fc9
commit cd66361895

View File

@@ -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)