{{- if .Values.sshKeys }}
---
apiVersion: v1
kind: Secret
metadata:
  name: {{ include "virtual-machine.fullname" $ }}-ssh-keys
stringData:
  {{- range $k, $v := .Values.sshKeys }}
  key{{ $k }}: {{ quote $v }} 
  {{- end }}
{{- end }}
{{- if .Values.cloudInit }}
---
apiVersion: v1
kind: Secret
metadata:
  name: {{ include "virtual-machine.fullname" . }}-cloud-init
stringData:
  userdata: |
    {{- .Values.cloudInit | nindent 4 }}
{{- end }}
