mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 20:59:44 +02:00
feat: Ability to provide extra env variables in Helm (#961)
Closes #960
This commit is contained in:
parent
47c0ff9f69
commit
95a50d059a
3 changed files with 29 additions and 2 deletions
|
@ -15,7 +15,7 @@ type: application
|
||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# This is the chart version. This version number should be incremented each time you make changes
|
||||||
# to the chart and its templates, including the app version.
|
# to the chart and its templates, including the app version.
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||||
version: 0.2.17
|
version: 0.2.18
|
||||||
|
|
||||||
# This is the version number of the application being deployed. This version number should be
|
# This is the version number of the application being deployed. This version number should be
|
||||||
# incremented each time you make changes to the application. Versions are not expected to
|
# incremented each time you make changes to the application. Versions are not expected to
|
||||||
|
|
|
@ -67,6 +67,20 @@ spec:
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml .Values.resources | nindent 12 }}
|
||||||
env:
|
env:
|
||||||
|
{{- if .Values.extraEnv }}
|
||||||
|
{{- range .Values.extraEnv }}
|
||||||
|
- name: {{ .name }}
|
||||||
|
{{- if .value }}
|
||||||
|
value: {{ .value | quote}}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .valueFrom }}
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: {{ .valueFrom.secretName }}
|
||||||
|
key: {{ .valueFrom.key }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
{{- if not .Values.postgresql.enabled }}
|
{{- if not .Values.postgresql.enabled }}
|
||||||
{{- if .Values.existingDburlSecret }}
|
{{- if .Values.existingDburlSecret }}
|
||||||
- name: DATABASE_URL
|
- name: DATABASE_URL
|
||||||
|
|
|
@ -69,7 +69,7 @@ ingress:
|
||||||
# kubernetes.io/ingress.class: nginx
|
# kubernetes.io/ingress.class: nginx
|
||||||
# kubernetes.io/tls-acme: "true"
|
# kubernetes.io/tls-acme: "true"
|
||||||
hosts:
|
hosts:
|
||||||
# Used to set planka BASE_URL if no `baseurl` is provided.
|
# Used to set planka BASE_URL if no `baseurl` is provided.
|
||||||
- host: planka.local
|
- host: planka.local
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
|
@ -197,3 +197,16 @@ oidc:
|
||||||
##
|
##
|
||||||
roles: []
|
roles: []
|
||||||
# - planka-admin
|
# - planka-admin
|
||||||
|
|
||||||
|
## Extra environment variables for planka deployment
|
||||||
|
## Supports hard coded and getting values from a k8s secret
|
||||||
|
## - name: test
|
||||||
|
## value: valuetest
|
||||||
|
## - name: another
|
||||||
|
## value: another
|
||||||
|
## - name: test-secret
|
||||||
|
## valueFrom:
|
||||||
|
## secretName: k8s-secret-name
|
||||||
|
## key: key-inside-the-secret
|
||||||
|
##
|
||||||
|
extraEnv: []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue