Add self-contained API simulators lab with Compose and Helm.
Ship Proxmox, oVirt, VMware, and OpenStack behind one Postgres stack, Makefile helpers (up/clean/helm up|down/push), and a Helm chart with namespace, Let's Encrypt ingresses, migrate inits, and skip-if-seeded jobs.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
{{- if .Values.postgres.enabled }}
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ include "lab.fullname" . }}-postgres-init
|
||||
namespace: {{ include "lab.namespace" . }}
|
||||
labels:
|
||||
{{- include "lab.labels" . | nindent 4 }}
|
||||
app.kubernetes.io/component: postgres
|
||||
data:
|
||||
01-simulators.sql: |
|
||||
{{- range .Values.postgres.initDatabases }}
|
||||
CREATE USER {{ .user }} WITH PASSWORD '{{ .password }}';
|
||||
CREATE DATABASE {{ .database }} OWNER {{ .user }};
|
||||
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user