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

Commit

Permalink
chore: add concurrency settings to chart
Browse files Browse the repository at this point in the history
  • Loading branch information
zqzten committed May 3, 2021
1 parent f9ddd67 commit f53825e
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/kubefed/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ chart and their default values.
| controllermanager.clusterHealthCheckFailureThreshold | Minimum consecutive failures for the cluster health to be considered failed after having succeeded. | 3 |
| controllermanager.clusterHealthCheckSuccessThreshold | Minimum consecutive successes for the cluster health to be considered successful after having failed. | 1 |
| controllermanager.clusterHealthCheckTimeout | Duration after which the cluster health check times out. | 3s |
| controllermanager.maxConcurrentSyncReconciles | The maximum number of concurrent Reconciles of sync controller which can be run. | 1 |
| controllermanager.maxConcurrentStatusReconciles | The maximum number of concurrent Reconciles of status controller which can be run. | 1 |
| controllermanager.syncController.adoptResources | Whether to adopt pre-existing resource in member clusters. | Enabled |
| controllermanager.service.labels | Kubernetes labels attached to the controller manager's services | {} |
| controllermanager.certManager.enabled | Specifies whether to enable the usage of the cert-manager for the certificates generation. | false |
Expand Down
13 changes: 13 additions & 0 deletions charts/kubefed/charts/controllermanager/crds/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,19 @@ spec:
`Namespaced` or `Cluster`. `Namespaced` indicates that the KubeFed
namespace will be the only target of the control plane.
type: string
concurrency:
properties:
maxConcurrentSyncReconciles:
description: The maximum number of concurrent Reconciles of sync controller
which can be run. Defaults to 1.
format: int64
type: integer
maxConcurrentStatusReconciles:
description: The maximum number of concurrent Reconciles of status controller
which can be run. Defaults to 1.
format: int64
type: integer
type: object
syncController:
properties:
adoptResources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ spec:
failureThreshold: {{ .Values.clusterHealthCheckFailureThreshold | default 3 }}
successThreshold: {{ .Values.clusterHealthCheckSuccessThreshold | default 1 }}
timeout: {{ .Values.clusterHealthCheckTimeout | default "3s" | quote }}
concurrency:
maxConcurrentSyncReconciles: {{ .Values.maxConcurrentSyncReconciles | default 1 }}
maxConcurrentStatusReconciles: {{ .Values.maxConcurrentStatusReconciles | default 1 }}
syncController:
adoptResources: {{ .Values.syncController.adoptResources | default "Enabled" | quote }}
featureGates:
Expand Down
2 changes: 2 additions & 0 deletions charts/kubefed/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ controllermanager:
clusterHealthCheckTimeout:
## Supported options are `configmaps` and `endpoints`
leaderElectResourceLock:
maxConcurrentSyncReconciles:
maxConcurrentStatusReconciles:
syncController:
adoptResources:
## Value of feature gates item should be either `Enabled` or `Disabled`
Expand Down

0 comments on commit f53825e

Please sign in to comment.