fix: sort the properties so that the snippets do not cause drift for each deploy
This commit is contained in:
1 file changed
+8
-1
@@ -1073,7 +1073,14 @@ func getIngressAnnotations(appName string, processType string) (map[string]strin
|
|||||||
}
|
}
|
||||||
|
|
||||||
annotations := map[string]string{}
|
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)
|
value := newKey.getter(appName)
|
||||||
if newKey.modifier != nil {
|
if newKey.modifier != nil {
|
||||||
value = newKey.modifier(value)
|
value = newKey.modifier(value)
|
||||||
|
|||||||
Reference in new issue
Block a user