mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
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>
14 lines
401 B
YAML
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 }}
|