Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make linter properly happy #579

Merged
merged 2 commits into from
Oct 25, 2024
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