{{- if not .Values.env.TS3SERVER_SERVERADMIN_PASSWORD }}
{{- include "common.values.setup" . -}}
---
apiVersion: v1
kind: Secret
metadata:
  name: {{ include "common.names.fullname" . }}
  labels:
    {{- include "common.labels" . | nindent 4 }}
type: Opaque
data:
  serveradmin_password: {{ template "teamspeak.serveradmin-password" . }}
{{- end }}
