@@ -151,8 +151,8 @@ func main() {
151
151
enablePatroniFailsafeMode bool
152
152
enableFsGroupChangePolicyWebhook bool
153
153
154
- portRangeStart int
155
- portRangeSize int
154
+ portRangeStart int32
155
+ portRangeSize int32
156
156
replicationChangeRequeueTimeInSeconds int
157
157
158
158
patroniTTL uint32
@@ -200,9 +200,9 @@ func main() {
200
200
201
201
// todo: Check the default port range start and size.
202
202
viper .SetDefault (portRangeStartFlg , 32000 )
203
- portRangeStart = viper .GetInt (portRangeStartFlg )
203
+ portRangeStart = viper .GetInt32 (portRangeStartFlg )
204
204
viper .SetDefault (portRangeSizeFlg , 8000 )
205
- portRangeSize = viper .GetInt (portRangeSizeFlg )
205
+ portRangeSize = viper .GetInt32 (portRangeSizeFlg )
206
206
207
207
viper .SetDefault (customPSPNameFlg , "postgres-operator-psp" )
208
208
pspName = viper .GetString (customPSPNameFlg )
@@ -440,8 +440,8 @@ func main() {
440
440
441
441
var lbMgrOpts lbmanager.Options = lbmanager.Options {
442
442
LBIP : lbIP ,
443
- PortRangeStart : int32 ( portRangeStart ), // nolint
444
- PortRangeSize : int32 ( portRangeSize ), // nolint
443
+ PortRangeStart : portRangeStart ,
444
+ PortRangeSize : portRangeSize ,
445
445
EnableStandbyLeaderSelector : enableStandbyLeaderSelector ,
446
446
EnableLegacyStandbySelector : enableLegacyStandbySelector ,
447
447
StandbyClustersSourceRanges : standbyClusterSourceRanges ,
0 commit comments