blob: 212ea98a2fb4c7ed61b1e989a76bc4f24f49e2e2 [file] [log] [blame]
Giorgi Lekveishvili30ef74c2025-04-17 18:46:50 +04001{{- $userData := .Values.cloudInit.userData }}
2{{- if .Values.configs }}
3{{- $bootcmd := get $userData "bootcmd" | default list }}
4{{- $_ := set $userData "bootcmd" (concat $bootcmd (list "sudo mkdir /home/{{ .Values.username }}/.dodo" "sudo mount -t virtiofs configs /home/{{ .Values.username }}/.dodo"))}}
5{{- end }}
Giorgi Lekveishvilif739d352024-09-03 22:02:40 +04006apiVersion: v1
7kind: Secret
8metadata:
9 name: {{ .Values.name }}-user-data
10type: Opaque
11data:
Giorgi Lekveishvilic98fbd92025-04-17 19:10:03 +040012 userdata:
13 #cloud-config
14 {{ $userdata | toYaml | indent 4 }}