blob: 20b77cdf85ddc0dd3bc0c013b1cca00ecb0403d0 [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
Giorgi Lekveishvili67496702025-04-17 19:11:52 +040014 {{ $userData | toYaml | indent 4 }}