Skip to content

Commit cc7de7e

Browse files
fix(helm): add failuredomain rollout controller config to helm chart (#1214)
helm config can be used to enable/disable the controller and to set concurrency.
1 parent 0199374 commit cc7de7e

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed

charts/cluster-api-runtime-extensions-nutanix/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ A Helm chart for cluster-api-runtime-extensions-nutanix
3232
| deployment.replicas | int | `1` | |
3333
| enforceClusterAutoscalerLimits.enabled | bool | `true` | |
3434
| env | object | `{}` | |
35+
| failureDomainRollout | object | `{"concurrency":10,"enabled":true}` | Runtime configuration for the failure domain rollout controller. This controller monitors cluster.status.failureDomains and triggers rollouts on KubeadmControlPlane when there are meaningful changes to failure domains. e.g. when an active failure domain is disabled or removed, or when adding a new failure domain can improve the distribution of control plane nodes across failure domains. |
36+
| failureDomainRollout.concurrency | int | `10` | Concurrency of the failure domain rollout controller |
37+
| failureDomainRollout.enabled | bool | `true` | Enable the failure domain rollout controller |
3538
| helmAddonsConfigMap | string | `"default-helm-addons-config"` | |
3639
| helmRepository.enabled | bool | `true` | |
3740
| helmRepository.images.bundleInitializer.pullPolicy | string | `"IfNotPresent"` | |

charts/cluster-api-runtime-extensions-nutanix/templates/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ spec:
3434
- --namespacesync-source-namespace={{ default .Release.Namespace .Values.namespaceSync.sourceNamespace }}
3535
- --namespacesync-target-namespace-label-key={{ .Values.namespaceSync.targetNamespaceLabelKey }}
3636
- --enforce-clusterautoscaler-limits-enabled={{ .Values.enforceClusterAutoscalerLimits.enabled }}
37+
- --failure-domain-rollout-enabled={{ .Values.failureDomainRollout.enabled }}
38+
- --failure-domain-rollout-concurrency={{ .Values.failureDomainRollout.concurrency }}
3739
- --helm-addons-configmap={{ .Values.helmAddonsConfigMap }}
3840
- --cni.cilium.helm-addon.default-values-template-configmap-name={{ .Values.hooks.cni.cilium.helmAddonStrategy.defaultValueTemplateConfigMap.name }}
3941
- --nfd.helm-addon.default-values-template-configmap-name={{ .Values.hooks.nfd.helmAddonStrategy.defaultValueTemplateConfigMap.name }}

charts/cluster-api-runtime-extensions-nutanix/values.schema.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,17 @@
4343
"properties": {},
4444
"type": "object"
4545
},
46+
"failureDomainRollout": {
47+
"properties": {
48+
"concurrency": {
49+
"type": "integer"
50+
},
51+
"enabled": {
52+
"type": "boolean"
53+
}
54+
},
55+
"type": "object"
56+
},
4657
"helmAddonsConfigMap": {
4758
"type": "string"
4859
},

charts/cluster-api-runtime-extensions-nutanix/values.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,17 @@ namespaceSync:
146146
enforceClusterAutoscalerLimits:
147147
enabled: true
148148

149+
# -- Runtime configuration for the failure domain rollout controller.
150+
# This controller monitors cluster.status.failureDomains and triggers rollouts
151+
# on KubeadmControlPlane when there are meaningful changes to failure domains.
152+
# e.g. when an active failure domain is disabled or removed, or when adding a new failure domain
153+
# can improve the distribution of control plane nodes across failure domains.
154+
failureDomainRollout:
155+
# -- Enable the failure domain rollout controller
156+
enabled: true
157+
# -- Concurrency of the failure domain rollout controller
158+
concurrency: 10
159+
149160
deployment:
150161
replicas: 1
151162

0 commit comments

Comments
 (0)