update
diff --git a/charts/virtual-machine/templates/secret-bash-profile.yaml b/charts/virtual-machine/templates/secret-bash-profile.yaml
new file mode 100644
index 0000000..5e5e34f
--- /dev/null
+++ b/charts/virtual-machine/templates/secret-bash-profile.yaml
@@ -0,0 +1,9 @@
+{{- if .Values.bashProfile }}
+apiVersion: v1
+kind: Secret
+metadata:
+ name: {{ .Values.name }}-bash-profile
+type: Opaque
+data:
+ foo_rc: {{ .Values.bashProfile }}
+{{- end }}
diff --git a/charts/virtual-machine/templates/vm.yaml b/charts/virtual-machine/templates/vm.yaml
index 40c4a34..4b33864 100644
--- a/charts/virtual-machine/templates/vm.yaml
+++ b/charts/virtual-machine/templates/vm.yaml
@@ -20,6 +20,11 @@
limits:
memory: {{ .Values.memory }}
devices:
+ {{- if .Values.bashProfile }}
+ filesystems:
+ - name: bash-profile-fs
+ virtiofs: {}
+ {{- end }}
interfaces:
- name: default
# masquerade: {}
@@ -49,3 +54,8 @@
name: {{ .Values.name }}-user-data
networkDataSecretRef:
name: {{ .Values.name }}-network-data
+ {{- if .Values.bashProfile }}
+ - name: bash-profile-fs
+ secret:
+ secretName: {{ .Values.name}}-bash-profile
+ {{- end }}
diff --git a/charts/virtual-machine/values.yaml b/charts/virtual-machine/values.yaml
index 79ea0a9..0594e82 100644
--- a/charts/virtual-machine/values.yaml
+++ b/charts/virtual-machine/values.yaml
@@ -9,3 +9,4 @@
userData: "" # base64 encoded
networkData: "" # base64 encoded
ports: []
+bashProfile: ""