Skip to content

Commit

Permalink
fix: sort etcd args to make them deterministic
Browse files Browse the repository at this point in the history
  • Loading branch information
sircthulhu committed Jul 3, 2024
1 parent 7367339 commit 3db5163
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/controller/factory/statefulset.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"context"
"fmt"
"math"
"slices"
"strconv"

"github.com/aenix-io/etcd-operator/internal/log"
Expand Down Expand Up @@ -334,6 +335,8 @@ func generateEtcdArgs(cluster *etcdaenixiov1alpha1.EtcdCluster) []string {
args = append(args, clientTlsSettings...)
args = append(args, autoCompactionSettings...)

slices.Sort(args)

return args
}

Expand Down

0 comments on commit 3db5163

Please sign in to comment.