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

Commit f53825e

Browse files
committed
chore: add concurrency settings to chart
1 parent f9ddd67 commit f53825e

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
@@ -692,6 +692,19 @@ spec:
692692
`Namespaced` or `Cluster`. `Namespaced` indicates that the KubeFed
693693
namespace will be the only target of the control plane.
694694
type: string
695+
concurrency:
696+
properties:
697+
maxConcurrentSyncReconciles:
698+
description: The maximum number of concurrent Reconciles of sync controller
699+
which can be run. Defaults to 1.
700+
format: int64
701+
type: integer
702+
maxConcurrentStatusReconciles:
703+
description: The maximum number of concurrent Reconciles of status controller
704+
which can be run. Defaults to 1.
705+
format: int64
706+
type: integer
707+
type: object
695708
syncController:
696709
properties:
697710
adoptResources:

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)