We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa81ae9 commit 3a2b453Copy full SHA for 3a2b453
pkg/service/model_build_target_group.go
@@ -16,6 +16,7 @@ import (
16
"sigs.k8s.io/aws-load-balancer-controller/pkg/annotations"
17
"sigs.k8s.io/aws-load-balancer-controller/pkg/k8s"
18
elbv2model "sigs.k8s.io/aws-load-balancer-controller/pkg/model/elbv2"
19
+ "sort"
20
"strconv"
21
"strings"
22
)
@@ -216,6 +217,9 @@ func (t *defaultModelBuildTask) buildTargetGroupAttributes(_ context.Context) ([
216
217
Value: attrValue,
218
})
219
}
220
+ sort.Slice(attributes, func(i, j int) bool {
221
+ return attributes[i].Key < attributes[j].Key
222
+ })
223
return attributes, nil
224
225
0 commit comments