update
diff --git a/charts/virtual-machine/templates/vm.yaml b/charts/virtual-machine/templates/vm.yaml
index 3a0a446..ebb2fcb 100644
--- a/charts/virtual-machine/templates/vm.yaml
+++ b/charts/virtual-machine/templates/vm.yaml
@@ -38,6 +38,9 @@
disk:
bus: virtio
readonly: true
+ filesystems:
+ - name: configs
+ virtiofs: {}
networks:
- name: default
pod: {}
@@ -51,3 +54,8 @@
name: {{ .Values.name }}-user-data
networkDataSecretRef:
name: {{ .Values.name }}-network-data
+ {{- if .Values.configFiles }}
+ - name: configs
+ configMap:
+ name: configs-{{ .Values.name }}
+ {{- end }}