Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

fix(helm): define KANEO_POSTGRES_PASSWORD before DATABASE_URL (#1309)

Andrejac43e74d928b
diff --git a/charts/kaneo/templates/deployment.yaml b/charts/kaneo/templates/deployment.yaml
index 9542b47e4..975492cb8 100644
--- a/charts/kaneo/templates/deployment.yaml
+++ b/charts/kaneo/templates/deployment.yaml
@@ -57,6 +57,13 @@ spec:
{{- else }}
value: "{{ .Values.kaneo.env.authSecret }}"
{{- end }}
+ {{- if and (not .Values.kaneo.env.database.external.enabled) .Values.postgresql.auth.existingSecret }}
+ - name: KANEO_POSTGRES_PASSWORD
+ valueFrom:
+ secretKeyRef:
+ name: {{ .Values.postgresql.auth.existingSecret }}
+ key: {{ .Values.postgresql.auth.secretKeys.userPasswordKey }}
+ {{- end }}
- name: DATABASE_URL
{{- if .Values.kaneo.env.database.external.enabled }}
{{- if .Values.kaneo.env.database.external.existingSecret.enabled }}
@@ -74,13 +81,6 @@ spec:
value: "postgresql://{{ include "kaneo.urlencodeUserinfo" .Values.postgresql.auth.username }}:{{ include "kaneo.urlencodeUserinfo" .Values.postgresql.auth.password }}@{{ include "kaneo.fullname" . }}-postgresql:{{ .Values.postgresql.service.port }}/{{ .Values.postgresql.auth.database }}"
{{- end }}
{{- end }}
- {{- if and (not .Values.kaneo.env.database.external.enabled) .Values.postgresql.auth.existingSecret }}
- - name: KANEO_POSTGRES_PASSWORD
- valueFrom:
- secretKeyRef:
- name: {{ .Values.postgresql.auth.existingSecret }}
- key: {{ .Values.postgresql.auth.secretKeys.userPasswordKey }}
- {{- end }}
- name: DISABLE_REGISTRATION
value: {{ .Values.kaneo.env.disableRegistration | quote }}
- name: DISABLE_PASSWORD_REGISTRATION