Skip to content

Commit 52971f2

Browse files
committed
Constant ordering for agent args
Signed-off-by: Mike Spreitzer <mspreitz@us.ibm.com>
1 parent 76bcbc4 commit 52971f2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/ocm-status-addon/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
goflag "flag"
66
"fmt"
77
"os"
8+
"sort"
89

910
"github.com/spf13/cobra"
1011
"github.com/spf13/pflag"
@@ -129,6 +130,7 @@ func (ac *agentController) getPropagatedSettings(*clusterv1.ManagedCluster, *add
129130
settings = append(settings, setting)
130131
}
131132
}
133+
sort.Strings(settings)
132134
return map[string]any{"PropagatedSettings": settings}, nil
133135
}
134136

0 commit comments

Comments
 (0)