mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 20:59:44 +02:00
Support adding extra env variables to planka deployment dynamically
Resolves https://github.com/plankanban/planka/issues/960
This commit is contained in:
parent
8d245e8722
commit
b4a9d9582e
2 changed files with 39 additions and 7 deletions
|
@ -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
|
||||||
|
|
|
@ -15,7 +15,7 @@ nameOverride: ""
|
||||||
fullnameOverride: ""
|
fullnameOverride: ""
|
||||||
|
|
||||||
# Generate a secret using openssl rand -base64 45
|
# Generate a secret using openssl rand -base64 45
|
||||||
secretkey: ""
|
secretkey: "88030836190636c899007865fafbf3074afdbe2a184300c75c15a3447a2734f77af6e32847b44993e49771bae9d6a95cd7c355385ba18959d6b9fbf6f1ed1bc2"
|
||||||
|
|
||||||
## @param existingSecretkeySecret Name of an existing secret containing the session key string
|
## @param existingSecretkeySecret Name of an existing secret containing the session key string
|
||||||
## NOTE: Must contain key `key`
|
## NOTE: Must contain key `key`
|
||||||
|
@ -42,10 +42,12 @@ serviceAccount:
|
||||||
|
|
||||||
podAnnotations: {}
|
podAnnotations: {}
|
||||||
|
|
||||||
podSecurityContext: {}
|
podSecurityContext:
|
||||||
|
{}
|
||||||
# fsGroup: 2000
|
# fsGroup: 2000
|
||||||
|
|
||||||
securityContext: {}
|
securityContext:
|
||||||
|
{}
|
||||||
# capabilities:
|
# capabilities:
|
||||||
# drop:
|
# drop:
|
||||||
# - ALL
|
# - ALL
|
||||||
|
@ -65,11 +67,12 @@ service:
|
||||||
ingress:
|
ingress:
|
||||||
enabled: false
|
enabled: false
|
||||||
className: ""
|
className: ""
|
||||||
annotations: {}
|
annotations:
|
||||||
|
{}
|
||||||
# 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: /
|
||||||
|
@ -79,7 +82,8 @@ ingress:
|
||||||
# hosts:
|
# hosts:
|
||||||
# - planka.local
|
# - planka.local
|
||||||
|
|
||||||
resources: {}
|
resources:
|
||||||
|
{}
|
||||||
# We usually recommend not to specify default resources and to leave this as a conscious
|
# We usually recommend not to specify default resources and to leave this as a conscious
|
||||||
# choice for the user. This also increases chances charts run on environments with little
|
# choice for the user. This also increases chances charts run on environments with little
|
||||||
# resources, such as Minikube. If you do want to specify resources, uncomment the following
|
# resources, such as Minikube. If you do want to specify resources, uncomment the following
|
||||||
|
@ -195,5 +199,19 @@ oidc:
|
||||||
|
|
||||||
## @param oidc.admin.roles The names of the admin groups
|
## @param oidc.admin.roles The names of the admin groups
|
||||||
##
|
##
|
||||||
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