Skip to content

Commit 389b32f

Browse files
dhaiducekopenshift-merge-bot[bot]
authored andcommitted
Align integer sizes for G115
Signed-off-by: Dale Haiducek <[email protected]>
1 parent c426e1d commit 389b32f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

controllers/uninstall/triggeruninstall.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var (
2525
deploymentName string
2626
deploymentNamespace string
2727
policyNamespace string
28-
timeoutSeconds uint
28+
timeoutSeconds uint32
2929
)
3030

3131
var triggerLog = ctrl.Log.WithName("trigger-uninstall")
@@ -95,7 +95,7 @@ func parseUninstallFlags(args []string) error {
9595
triggerUninstallFlagSet.StringVar(
9696
&policyNamespace, "policy-namespace", "", "The namespace where the Policy objects are stored",
9797
)
98-
triggerUninstallFlagSet.UintVar(
98+
triggerUninstallFlagSet.Uint32Var(
9999
&timeoutSeconds, "timeout-seconds", 300, "The number of seconds before the operation is canceled",
100100
)
101101
triggerUninstallFlagSet.AddGoFlagSet(flag.CommandLine)

tool/options.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ type SyncerOptions struct {
3030
DeploymentName string
3131
EvaluationConcurrency uint8
3232
ClientQPS float32
33-
ClientBurst uint
33+
ClientBurst uint32
3434
ComplianceAPIURL string
3535
}
3636

@@ -135,7 +135,7 @@ func ProcessFlags() {
135135
"Will scale with concurrency, if not explicitly set.",
136136
)
137137

138-
flag.UintVar(
138+
flag.Uint32Var(
139139
&Options.ClientBurst,
140140
"client-burst",
141141
45, // the controller-runtime defaults are 20:30 (qps:burst) - this matches that ratio
@@ -156,7 +156,7 @@ func ProcessFlags() {
156156
}
157157

158158
if !flag.Changed("client-burst") {
159-
Options.ClientBurst = uint(Options.EvaluationConcurrency)*22 + 1
159+
Options.ClientBurst = uint32(Options.EvaluationConcurrency)*22 + 1
160160
}
161161
}
162162

0 commit comments

Comments
 (0)