-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from at88mph/posix-mapper-pg-optional
fix: make postgres install optional
- Loading branch information
Showing
6 changed files
with
33 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 9 additions & 6 deletions
15
helm/applications/posix-mapper/templates/postgres-config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,25 @@ | ||
{{- with required "PostgreSQL Database configuration is required." .Values.postgresql }} | ||
{{- if .install }} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: posix-mapper-postgres-config | ||
namespace: {{ .Values.skaha.namespace }} | ||
namespace: {{ $.Values.skaha.namespace }} | ||
labels: | ||
app: posix-mapper-postgres | ||
data: | ||
POSTGRES_DB: {{ .Values.postgresql.auth.database }} | ||
POSTGRES_USER: {{ .Values.postgresql.auth.username }} | ||
POSTGRES_PASSWORD: {{ .Values.postgresql.auth.password }} | ||
POSTGRES_DB: {{ .auth.database }} | ||
POSTGRES_USER: {{ .auth.username }} | ||
POSTGRES_PASSWORD: {{ .auth.password }} | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: posix-mapper-postgres-init | ||
namespace: {{ .Values.skaha.namespace }} | ||
namespace: {{ $.Values.skaha.namespace }} | ||
labels: | ||
app: posix-mapper-postgres | ||
data: | ||
init_schema.sql: | | ||
create schema {{ .Values.postgresql.auth.schema }}; | ||
create schema {{ .auth.schema }}; | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters