@@ -116,12 +116,12 @@ func main() {
116116 secureMetrics bool
117117 enableLeaderElection bool
118118 probeAddr string
119- keyRotationDays uint
120- keyRotationMaxConcurrency uint
121- policyMetricsMaxConcurrency uint
122- policyStatusMaxConcurrency uint
123- rootPolicyMaxConcurrency uint
124- replPolicyMaxConcurrency uint
119+ keyRotationDays uint32
120+ keyRotationMaxConcurrency uint16
121+ policyMetricsMaxConcurrency uint16
122+ policyStatusMaxConcurrency uint16
123+ rootPolicyMaxConcurrency uint16
124+ replPolicyMaxConcurrency uint16
125125 enableWebhooks bool
126126 complianceAPIHost string
127127 complianceAPIPort string
@@ -143,37 +143,37 @@ func main() {
143143 "Enabling this will ensure there is only one active controller manager." )
144144 pflag .BoolVar (& enableWebhooks , "enable-webhooks" , true ,
145145 "Enable the policy validating webhook" )
146- pflag .UintVar (
146+ pflag .Uint32Var (
147147 & keyRotationDays ,
148148 "encryption-key-rotation" ,
149149 30 ,
150150 "The number of days until the policy encryption key is rotated" ,
151151 )
152- pflag .UintVar (
152+ pflag .Uint16Var (
153153 & keyRotationMaxConcurrency ,
154154 "key-rotation-max-concurrency" ,
155155 10 ,
156156 "The maximum number of concurrent reconciles for the policy-encryption-keys controller" ,
157157 )
158- pflag .UintVar (
158+ pflag .Uint16Var (
159159 & policyMetricsMaxConcurrency ,
160160 "policy-metrics-max-concurrency" ,
161161 5 ,
162162 "The maximum number of concurrent reconciles for the policy-metrics controller" ,
163163 )
164- pflag .UintVar (
164+ pflag .Uint16Var (
165165 & policyStatusMaxConcurrency ,
166166 "policy-status-max-concurrency" ,
167167 5 ,
168168 "The maximum number of concurrent reconciles for the policy-status controller" ,
169169 )
170- pflag .UintVar (
170+ pflag .Uint16Var (
171171 & rootPolicyMaxConcurrency ,
172172 "root-policy-max-concurrency" ,
173173 2 ,
174174 "The maximum number of concurrent reconciles for the root-policy controller" ,
175175 )
176- pflag .UintVar (
176+ pflag .Uint16Var (
177177 & replPolicyMaxConcurrency ,
178178 "replicated-policy-max-concurrency" ,
179179 10 ,
0 commit comments