Skip to content

Commit d38cd45

Browse files
committed
fix: inverted condition
1 parent de5dfa5 commit d38cd45

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/reconcilers/etcd_cluster/reconciler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ func (er *etcdClusterReconciler) buildEtcdArgs(
814814
"quota-backend-bytes": strconv.Itoa(int(storageQuota)),
815815
}
816816

817-
if int64(etcdVersion.Minor) >= version.V3_7.Minor { //nolint:gosec // semver minor will never overflow int64
817+
if int64(etcdVersion.Minor) < version.V3_7.Minor { //nolint:gosec // semver minor will never overflow int64
818818
// this is deprecated and will be removed in 3.7
819819
// TODO: remove this when we roll 3.7
820820
args["snapshot-count"] = "10000"

0 commit comments

Comments
 (0)