Skip to content

Commit

Permalink
Make linter properly happy (#579)
Browse files Browse the repository at this point in the history
  • Loading branch information
eberlep authored Oct 25, 2024
1 parent eb8552e commit 5feec46
Showing 1 changed file with 6 additions and 6 deletions.
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

0 comments on commit 5feec46

Please sign in to comment.