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 5037fb4 commit ccf78c6Copy full SHA for ccf78c6
internal/plugin.go
@@ -1703,6 +1703,11 @@ func (p *Plugin) generateSelector(
1703
resolvedSelectorsLS.MatchExpressions = append(resolvedSelectorsLS.MatchExpressions, lsReq)
1704
}
1705
1706
+ // Sort the MatchExpressions to make the result deterministic
1707
+ sort.Slice(resolvedSelectorsLS.MatchExpressions, func(i, j int) bool {
1708
+ return resolvedSelectorsLS.MatchExpressions[i].Key < resolvedSelectorsLS.MatchExpressions[j].Key
1709
+ })
1710
+
1711
resolved, err := runtime.DefaultUnstructuredConverter.ToUnstructured(&resolvedSelectorsLS)
1712
if err != nil {
1713
panic(err)
0 commit comments