Skip to content

Commit b586c99

Browse files
committed
Add validation for concurrency option
1 parent 5fbaede commit b586c99

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/controllers/options/tagging_controller.go

+4
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ func (o *TaggingControllerOptions) Validate() error {
5858
return fmt.Errorf("--tagging-controller-burst-limit should not be less than zero")
5959
}
6060

61+
if o.WorkerCount <= 0 {
62+
return fmt.Errorf("--tagging-controller-concurrent-node-syncs must be a positive number")
63+
}
64+
6165
for _, r := range o.Resources {
6266
for _, resource := range SupportedResources {
6367
if r != resource {

0 commit comments

Comments
 (0)