Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ func main() {
enablePatroniFailsafeMode bool
enableFsGroupChangePolicyWebhook bool

portRangeStart int
portRangeSize int
portRangeStart int32
portRangeSize int32
replicationChangeRequeueTimeInSeconds int

patroniTTL uint32
Expand Down Expand Up @@ -200,9 +200,9 @@ func main() {

// todo: Check the default port range start and size.
viper.SetDefault(portRangeStartFlg, 32000)
portRangeStart = viper.GetInt(portRangeStartFlg)
portRangeStart = viper.GetInt32(portRangeStartFlg)
viper.SetDefault(portRangeSizeFlg, 8000)
portRangeSize = viper.GetInt(portRangeSizeFlg)
portRangeSize = viper.GetInt32(portRangeSizeFlg)

viper.SetDefault(customPSPNameFlg, "postgres-operator-psp")
pspName = viper.GetString(customPSPNameFlg)
Expand Down Expand Up @@ -440,8 +440,8 @@ func main() {

var lbMgrOpts lbmanager.Options = lbmanager.Options{
LBIP: lbIP,
PortRangeStart: int32(portRangeStart), // nolint
PortRangeSize: int32(portRangeSize), // nolint
PortRangeStart: portRangeStart,
PortRangeSize: portRangeSize,
EnableStandbyLeaderSelector: enableStandbyLeaderSelector,
EnableLegacyStandbySelector: enableLegacyStandbySelector,
StandbyClustersSourceRanges: standbyClusterSourceRanges,
Expand Down
Loading