Skip to content

Commit bbaf96e

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

File tree

4 files changed

+23
-0
lines changed

4 files changed

+23
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ A Helm chart for cluster-api-runtime-extensions-nutanix
3232
| deployment.replicas | int | `1` | |
3333
| enforceClusterAutoscalerLimits.enabled | bool | `true` | |
3434
| env | object | `{}` | |
35+
| failureDomainRollout.concurrency | int | `10` | |
36+
| failureDomainRollout.enabled | bool | `true` | |
3537
| helmAddonsConfigMap | string | `"default-helm-addons-config"` | |
3638
| helmRepository.enabled | bool | `true` | |
3739
| 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: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,14 @@ namespaceSync:
146146
enforceClusterAutoscalerLimits:
147147
enabled: true
148148

149+
# Enable the failure domain rollout controller.
150+
# This controller monitors cluster.status.failureDomains and triggers rollouts on
151+
# KubeadmControlPlane when there are meaningful changes to failure domain
152+
# availability or when distribution improvements are possible.
153+
failureDomainRollout:
154+
enabled: true
155+
concurrency: 10
156+
149157
deployment:
150158
replicas: 1
151159

0 commit comments

Comments
 (0)