Skip to content
This repository was archived by the owner on Apr 25, 2023. It is now read-only.

Commit 4affcc7

Browse files
committed
chore: add concurrency settings to chart
1 parent 0368325 commit 4affcc7

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

charts/kubefed/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ chart and their default values.
123123
| controllermanager.clusterHealthCheckFailureThreshold | Minimum consecutive failures for the cluster health to be considered failed after having succeeded. | 3 |
124124
| controllermanager.clusterHealthCheckSuccessThreshold | Minimum consecutive successes for the cluster health to be considered successful after having failed. | 1 |
125125
| controllermanager.clusterHealthCheckTimeout | Duration after which the cluster health check times out. | 3s |
126+
| controllermanager.maxConcurrentSyncReconciles | The maximum number of concurrent Reconciles of sync controller which can be run. | 1 |
127+
| controllermanager.maxConcurrentStatusReconciles | The maximum number of concurrent Reconciles of status controller which can be run. | 1 |
126128
| controllermanager.syncController.adoptResources | Whether to adopt pre-existing resource in member clusters. | Enabled |
127129
| controllermanager.service.labels | Kubernetes labels attached to the controller manager's services | {} |
128130
| controllermanager.certManager.enabled | Specifies whether to enable the usage of the cert-manager for the certificates generation. | false |

charts/kubefed/charts/controllermanager/crds/crds.yaml

+13
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,19 @@ spec:
639639
out.
640640
type: string
641641
type: object
642+
concurrency:
643+
properties:
644+
maxConcurrentStatusReconciles:
645+
description: The maximum number of concurrent Reconciles of status
646+
controller which can be run. Defaults to 1.
647+
format: int64
648+
type: integer
649+
maxConcurrentSyncReconciles:
650+
description: The maximum number of concurrent Reconciles of sync
651+
controller which can be run. Defaults to 1.
652+
format: int64
653+
type: integer
654+
type: object
642655
controllerDuration:
643656
properties:
644657
availableDelay:

charts/kubefed/charts/controllermanager/templates/kubefedconfig.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ spec:
1818
failureThreshold: {{ .Values.clusterHealthCheckFailureThreshold | default 3 }}
1919
successThreshold: {{ .Values.clusterHealthCheckSuccessThreshold | default 1 }}
2020
timeout: {{ .Values.clusterHealthCheckTimeout | default "3s" | quote }}
21+
concurrency:
22+
maxConcurrentSyncReconciles: {{ .Values.maxConcurrentSyncReconciles | default 1 }}
23+
maxConcurrentStatusReconciles: {{ .Values.maxConcurrentStatusReconciles | default 1 }}
2124
syncController:
2225
adoptResources: {{ .Values.syncController.adoptResources | default "Enabled" | quote }}
2326
featureGates:

charts/kubefed/values.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ controllermanager:
1717
clusterHealthCheckTimeout:
1818
## Supported options are `configmaps` and `endpoints`
1919
leaderElectResourceLock:
20+
maxConcurrentSyncReconciles:
21+
maxConcurrentStatusReconciles:
2022
syncController:
2123
adoptResources:
2224
## Value of feature gates item should be either `Enabled` or `Disabled`

0 commit comments

Comments
 (0)