change postgres settings to import only password from secret

This commit is contained in:
2024-04-19 05:41:38 -06:00
parent 646e3a2c36
commit 1f498323a4
4 changed files with 15 additions and 38 deletions

View File

@@ -84,30 +84,18 @@ spec:
- name: PUBLIC_URL
value: "{{ .Values.config.publicUrl }}"
- name: POSTGRES_USER
valueFrom:
secretKeyRef:
name: "{{ .Values.config.postgresql.existingSecretName }}"
key: "{{ .Values.config.postgresql.usernameKey }}"
value: "{{ .Values.config.postgresql.username }}"
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: "{{ .Values.config.postgresql.existingSecretName }}"
key: "{{ .Values.config.postgresql.passwordKey }}"
- name: POSTGRES_DB
valueFrom:
secretKeyRef:
name: "{{ .Values.config.postgresql.existingSecretName }}"
key: "{{ .Values.config.postgresql.databaseNameKey }}"
value: "{{ .Values.config.postgresql.database }}"
- name: POSTGRES_SERVER
valueFrom:
secretKeyRef:
name: "{{ .Values.config.postgresql.existingSecretName }}"
key: "{{ .Values.config.postgresql.hostKey }}"
value: "{{ .Values.config.postgresql.host }}"
- name: POSTGRES_PORT
valueFrom:
secretKeyRef:
name: "{{ .Values.config.postgresql.existingSecretName }}"
key: "{{ .Values.config.postgresql.portKey }}"
value: "{{ .Values.config.postgresql.port }}"
{{ if .Values.config.oidc.enabled }}
- name: OIDC_SERVICE_NAME

View File

@@ -77,30 +77,18 @@ spec:
- name: PUBLIC_URL
value: "{{ .Values.config.publicUrl }}"
- name: POSTGRES_USER
valueFrom:
secretKeyRef:
name: "{{ .Values.config.postgresql.existingSecretName }}"
key: "{{ .Values.config.postgresql.usernameKey }}"
value: "{{ .Values.config.postgresql.username }}"
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: "{{ .Values.config.postgresql.existingSecretName }}"
key: "{{ .Values.config.postgresql.passwordKey }}"
- name: POSTGRES_DB
valueFrom:
secretKeyRef:
name: "{{ .Values.config.postgresql.existingSecretName }}"
key: "{{ .Values.config.postgresql.databaseNameKey }}"
value: "{{ .Values.config.postgresql.database }}"
- name: POSTGRES_SERVER
valueFrom:
secretKeyRef:
name: "{{ .Values.config.postgresql.existingSecretName }}"
key: "{{ .Values.config.postgresql.hostKey }}"
value: "{{ .Values.config.postgresql.host }}"
- name: POSTGRES_PORT
valueFrom:
secretKeyRef:
name: "{{ .Values.config.postgresql.existingSecretName }}"
key: "{{ .Values.config.postgresql.portKey }}"
value: "{{ .Values.config.postgresql.port }}"
{{ if .Values.config.oidc.enabled }}
- name: OIDC_SERVICE_NAME