apiVersion: v1
kind: Secret
metadata:
  name: {{ template "factorio.fullname" . }}
  labels:
    app: {{ template "factorio.fullname" . }}
    chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
    release: "{{ .Release.Name }}"
    heritage: "{{ .Release.Service }}"
type: Opaque
data:
  server-password: {{ default "" .Values.factorioServer.password | b64enc | quote }}
  rcon-password: {{ default "" .Values.factorioServer.rcon.password | b64enc | quote }}
  factorio-username: {{ default "" .Values.factorio.user.username | b64enc | quote }}
  factorio-password: {{ default "" .Values.factorio.user.password | b64enc | quote }}
