[bitnami/owncloud] Add ExtraEnvVar parameter (#3964)

This commit is contained in:
Miguel Ángel Cabrera Miñagorri
2020-10-09 15:56:28 +02:00
committed by GitHub
parent 1a315fd992
commit 37702bf58b
5 changed files with 20 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: owncloud
version: 8.2.6
version: 8.3.0
appVersion: 10.5.0
description: A file sharing server that puts the control and security of your own data back into your hands.
keywords:
+1
View File
@@ -100,6 +100,7 @@ The following table lists the configurable parameters of the ownCloud chart and
| `resources` | CPU/Memory resource requests/limits | Memory: `512Mi`, CPU: `300m` |
| `podAnnotations` | Pod annotations | `{}` |
| `affinity` | Map of node/pod affinities | `{}` |
| `extraEnvVars` | Pass extra environment variables to the image | `[]` |
| `metrics.enabled` | Start a side-car prometheus exporter | `false` |
| `metrics.image.registry` | Apache exporter image registry | `docker.io` |
| `metrics.image.repository` | Apache exporter image name | `bitnami/apache-exporter` |
+13
View File
@@ -186,3 +186,16 @@ Return the appropriate apiVersion for deployment.
{{- print "apps/v1" -}}
{{- end -}}
{{- end -}}
{{/*
Renders a value that contains template.
Usage:
{{ include "owncloud.tplValues.render" ( dict "value" .Values.path.to.the.Value "context" $) }}
*/}}
{{- define "owncloud.tplValues.render" -}}
{{- if typeIs "string" .value }}
{{- tpl .value .context }}
{{- else }}
{{- tpl (.value | toYaml) .context }}
{{- end }}
{{- end -}}
@@ -88,6 +88,9 @@ spec:
key: owncloud-password
- name: OWNCLOUD_EMAIL
value: {{ default "" .Values.owncloudEmail | quote }}
{{- if .Values.extraEnvVars }}
{{- include "owncloud.tplValues.render" ( dict "value" .Values.extraEnvVars "context" $ ) | nindent 8 }}
{{- end }}
ports:
- name: http
containerPort: 80
+2
View File
@@ -247,6 +247,8 @@ podAnnotations: {}
##
affinity: {}
extraEnvVars: []
## Prometheus Exporter / Metrics
##
metrics: