Skip to content

Commit f1e9c56

Browse files
Merge pull request #1203 from openshift/azure-max-concurrent-reconciles
OCPBUGS-23544: Set --max-concurrent-reconciles=10 for Azure machine controller
2 parents 9ee88eb + ebde8d2 commit f1e9c56

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pkg/operator/sync.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,12 @@ func newContainers(config *OperatorConfig, features map[string]bool) []corev1.Co
650650
fmt.Sprintf("--namespace=%s", config.TargetNamespace),
651651
}
652652

653+
machineControllerArgs := append([]string{}, args...)
654+
switch config.PlatformType {
655+
case v1.AzurePlatformType:
656+
machineControllerArgs = append(machineControllerArgs, "--max-concurrent-reconciles=10")
657+
}
658+
653659
proxyEnvArgs := getProxyArgs(config)
654660

655661
containers := []corev1.Container{
@@ -698,7 +704,7 @@ func newContainers(config *OperatorConfig, features map[string]bool) []corev1.Co
698704
Name: "machine-controller",
699705
Image: config.Controllers.Provider,
700706
Command: []string{"/machine-controller-manager"},
701-
Args: args,
707+
Args: machineControllerArgs,
702708
Resources: resources,
703709
Env: append(proxyEnvArgs, corev1.EnvVar{
704710
Name: "NODE_NAME",

0 commit comments

Comments
 (0)