Files
rowanr 7e895e4b8f [stable/pgadmin] Server Definitions implementation (#20607)
Server definitions will be loaded at launch time. This allows connection
information to be pre-loaded into the instance of pgAdmin in the container.

Signed-off-by: Rowan Ruseler <rowanruseler@gmail.com>
2020-02-11 06:18:06 -08:00

14 lines
401 B
YAML

{{- $fullName := include "pgadmin.fullname" . -}}
apiVersion: v1
kind: Secret
metadata:
name: {{ $fullName }}
labels:
{{- include "pgadmin.labels" . | nindent 4 }}
type: Opaque
data:
password: {{ default "SuperSecret" .Values.env.password | b64enc | quote }}
{{- if .Values.serverDefinitions.enabled }}
servers.json: {{ include "pgadmin.serverDefinitions" . | b64enc | quote }}
{{- end }}