fix(openproject): Add DB and main service port (#3354)

* fix(openproject): Add DB and main service port

Let's see how much more I need lol

* Update Chart.yaml

* more fixes

* Update Chart.yaml

* Other fixes I missed

* trying this one with port 80

* add some fixes

* fix pg

* whoops

Co-authored-by: Stavros kois <s.kois@outlook.com>
This commit is contained in:
StevenMcElligott
2022-08-01 11:44:49 +03:00
committed by GitHub
co-authored by Stavros kois
parent e93a6b1755
commit 8aaa1fdb55
5 changed files with 156 additions and 74 deletions
@@ -0,0 +1,20 @@
{{/* Define the secrets */}}
{{- define "openproject.secrets" -}}
---
apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: openproject-secrets
{{- $openprojectprevious := lookup "v1" "Secret" .Release.Namespace "openproject-secrets" }}
{{- $secret_key_base := "" }}
data:
{{- if $openprojectprevious}}
SECRET_KEY_BASE: {{ index $openprojectprevious.data "SECRET_KEY_BASE" }}
{{- else }}
{{- $secret_key_base := randAlphaNum 32 }}
SECRET_KEY_BASE: {{ $secret_key_base | b64enc }}
{{- end }}
{{- end -}}