Skip to content

Commit 30f1b29

Browse files
authored
Merge branch 'main' into update_pw_hashing_algorithm
2 parents e266016 + a81bd7d commit 30f1b29

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

api/v1/postgres_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const (
7373
teamIDPrefix = "pg"
7474

7575
DefaultPatroniParamValueLoopWait uint32 = 10
76-
DefaultPatroniParamValueRetryTimeout uint32 = 60
76+
DefaultPatroniParamValueRetryTimeout uint32 = 10
7777

7878
defaultPostgresParamValueTCPKeepAlivesIdle = "200"
7979
defaultPostgresParamValueTCPKeepAlivesInterval = "30"

main.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ func main() {
151151
enablePatroniFailsafeMode bool
152152
enableFsGroupChangePolicyWebhook bool
153153

154-
portRangeStart int
155-
portRangeSize int
154+
portRangeStart int32
155+
portRangeSize int32
156156
replicationChangeRequeueTimeInSeconds int
157157

158158
patroniTTL uint32
@@ -200,9 +200,9 @@ func main() {
200200

201201
// todo: Check the default port range start and size.
202202
viper.SetDefault(portRangeStartFlg, 32000)
203-
portRangeStart = viper.GetInt(portRangeStartFlg)
203+
portRangeStart = viper.GetInt32(portRangeStartFlg)
204204
viper.SetDefault(portRangeSizeFlg, 8000)
205-
portRangeSize = viper.GetInt(portRangeSizeFlg)
205+
portRangeSize = viper.GetInt32(portRangeSizeFlg)
206206

207207
viper.SetDefault(customPSPNameFlg, "postgres-operator-psp")
208208
pspName = viper.GetString(customPSPNameFlg)
@@ -440,8 +440,8 @@ func main() {
440440

441441
var lbMgrOpts lbmanager.Options = lbmanager.Options{
442442
LBIP: lbIP,
443-
PortRangeStart: int32(portRangeStart), // nolint
444-
PortRangeSize: int32(portRangeSize), // nolint
443+
PortRangeStart: portRangeStart,
444+
PortRangeSize: portRangeSize,
445445
EnableStandbyLeaderSelector: enableStandbyLeaderSelector,
446446
EnableLegacyStandbySelector: enableLegacyStandbySelector,
447447
StandbyClustersSourceRanges: standbyClusterSourceRanges,

0 commit comments

Comments
 (0)