apiVersion: v1
kind: Secret
metadata:
  name: {{ include "guacamole.fullname" . }}
  labels:
{{ include "guacamole.labels" . | indent 4 }}
type: Opaque
data:
  GUACD_HOSTNAME: {{ printf "%s-%s" (include "guacamole.name" .) "guacd" | b64enc | quote }}
  GUACD_PORT: {{ "4822" | b64enc | quote }}
  POSTGRES_HOSTNAME: {{ .Values.postgres.hostname | b64enc | quote }}
  POSTGRES_PORT: {{ .Values.postgres.port | b64enc | quote }}
  POSTGRES_DATABASE: {{ .Values.postgres.database | b64enc | quote }}
  POSTGRES_USER: {{ .Values.postgres.user | b64enc | quote }}
  POSTGRES_PASSWORD: {{ .Values.postgres.password | b64enc | quote }}
