mirror of
https://github.com/plankanban/planka.git
synced 2025-07-19 05:09:43 +02:00
feat: Ability to specify existing secret as database url (#751)
Closes #750
This commit is contained in:
parent
f7be49e402
commit
1725f3cb8a
2 changed files with 16 additions and 2 deletions
|
@ -64,8 +64,16 @@ spec:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml .Values.resources | nindent 12 }}
|
||||||
env:
|
env:
|
||||||
{{- if not .Values.postgresql.enabled }}
|
{{- if not .Values.postgresql.enabled }}
|
||||||
|
{{- if .Values.existingDburlSecret }}
|
||||||
- name: DATABASE_URL
|
- name: DATABASE_URL
|
||||||
value: {{ required "If the included postgresql deployment is disabled you need to define a Database URL in 'dburl'" .Values.dburl }}
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: .Values.existingDburlSecret
|
||||||
|
key: uri
|
||||||
|
{{- else }}
|
||||||
|
- name: DATABASE_URL
|
||||||
|
value: {{ required "If the included postgresql deployment is disabled you need to provide an existing secret in .Values.existingDburlSecret or define a Database URL in 'dburl'" .Values.dburl }}
|
||||||
|
{{- end }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
- name: DATABASE_URL
|
- name: DATABASE_URL
|
||||||
valueFrom:
|
valueFrom:
|
||||||
|
|
|
@ -105,9 +105,15 @@ postgresql:
|
||||||
serviceBindings:
|
serviceBindings:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
## Set this if you disable the built-in postgresql deployment
|
## Set this or existingDburlSecret if you disable the built-in postgresql deployment
|
||||||
dburl:
|
dburl:
|
||||||
|
|
||||||
|
## @param existingDburlSecret Name of an existing secret containing a DBurl connection string
|
||||||
|
## NOTE: Must contain key `uri`
|
||||||
|
## NOTE: When it's set, the `dburl` parameter is ignored
|
||||||
|
##
|
||||||
|
existingDburlSecret: ""
|
||||||
|
|
||||||
## PVC-based data storage configuration
|
## PVC-based data storage configuration
|
||||||
persistence:
|
persistence:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue