Skip to content

Commit

Permalink
UPSTREAM: <carry>: Remove concurrent-service-syncs limitation
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelSpeed committed Feb 13, 2024
1 parent ed46763 commit 0a6308d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions cmd/cloud-controller-manager/app/options/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,6 @@ func (o *CloudControllerManagerOptions) Validate(allControllers, disabledByDefau
errors = append(errors, fmt.Errorf("--cloud-provider cannot be empty"))
}

if o.ServiceController.ConcurrentServiceSyncs != 1 {
errors = append(errors, fmt.Errorf("--concurrent-service-syncs is limited to 1 only"))
}

if !o.DynamicReloading.EnableDynamicReloading && o.KubeCloudShared.CloudProvider.CloudConfigFile == "" {
errors = append(errors, fmt.Errorf("--cloud-config cannot be empty when --enable-dynamic-reloading is not set to true"))
}
Expand Down
4 changes: 2 additions & 2 deletions cmd/cloud-controller-manager/app/options/options_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,8 @@ func TestValidate(t *testing.T) {
},
},
{
desc: "should return an error when validating options with concurrent service syncs not equal to 1",
expected: "--concurrent-service-syncs is limited to 1 only",
desc: "should not return an error when validating options with concurrent service syncs not equal to 1",
expected: "",
generateTestCloudControllerManagerOptions: func() *CloudControllerManagerOptions {
s, _ := NewCloudControllerManagerOptions()
s.ServiceController.ConcurrentServiceSyncs = 10
Expand Down

0 comments on commit 0a6308d

Please sign in to comment.