Skip to content

Commit 84fa508

Browse files
committed
feat: Multus Config
1 parent 1300f08 commit 84fa508

File tree

10 files changed

+164
-286
lines changed

10 files changed

+164
-286
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ A Helm chart for cluster-api-runtime-extensions-nutanix
7878
| hooks.cni.cilium.crsStrategy.defaultCiliumConfigMap.name | string | `"cilium"` | |
7979
| hooks.cni.cilium.helmAddonStrategy.defaultValueTemplateConfigMap.create | bool | `true` | |
8080
| hooks.cni.cilium.helmAddonStrategy.defaultValueTemplateConfigMap.name | string | `"default-cilium-cni-helm-values-template"` | |
81+
| hooks.cni.multus.helmAddonStrategy.defaultValueTemplateConfigMap.create | bool | `true` | |
82+
| hooks.cni.multus.helmAddonStrategy.defaultValueTemplateConfigMap.name | string | `"default-multus-values-template"` | |
8183
| hooks.cosi.controller.helmAddonStrategy.defaultValueTemplateConfigMap.create | bool | `true` | |
8284
| hooks.cosi.controller.helmAddonStrategy.defaultValueTemplateConfigMap.name | string | `"default-cosi-controller-helm-values-template"` | |
8385
| hooks.csi.aws-ebs.helmAddonStrategy.defaultValueTemplateConfigMap.create | bool | `true` | |

charts/cluster-api-runtime-extensions-nutanix/addons/cni/multus/values-template.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,23 @@ daemonConfig:
8080
cniVersion: "0.3.1"
8181
logLevel: "verbose"
8282
logToStderr: true
83-
readinessIndicatorFile: ""
83+
readinessIndicatorFile: "{{ .ReadinessSocketPath }}"
8484
cniConfigDir: "/host/etc/cni/net.d"
8585
multusAutoconfigDir: "/host/etc/cni/net.d"
8686
multusConfigFile: "auto"
8787
socketDir: "/host/run/multus/"
88+
89+
{{- if .ReadinessSocketPath }}
90+
# Volumes for CNI readiness socket
91+
volumes:
92+
- name: {{ .SocketVolumeName }}
93+
hostPath:
94+
path: "{{ .ReadinessSocketPath }}"
95+
type: Socket
96+
97+
# Volume mounts for CNI readiness socket
98+
volumeMounts:
99+
- name: {{ .SocketVolumeName }}
100+
mountPath: "{{ .ReadinessSocketPath }}"
101+
readOnly: true
102+
{{- end }}

charts/cluster-api-runtime-extensions-nutanix/templates/cni/multus/manifests/helm-addon-installation.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@ data:
1010
values.yaml: |-
1111
{{- .Files.Get "addons/cni/multus/values-template.yaml" | nindent 4 }}
1212
{{- end -}}
13-

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,27 @@
381381
}
382382
}
383383
}
384+
},
385+
"multus": {
386+
"type": "object",
387+
"properties": {
388+
"helmAddonStrategy": {
389+
"type": "object",
390+
"properties": {
391+
"defaultValueTemplateConfigMap": {
392+
"type": "object",
393+
"properties": {
394+
"create": {
395+
"type": "boolean"
396+
},
397+
"name": {
398+
"type": "string"
399+
}
400+
}
401+
}
402+
}
403+
}
404+
}
384405
}
385406
}
386407
},

hack/addons/kustomize/multus/kustomization.yaml.tmpl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,3 @@ helmCharts:
1818
version: 0.1.0
1919
includeCRDs: true
2020
skipTests: true
21-

0 commit comments

Comments
 (0)